I can’t seem to see the response status code for calls made to Cumulocity when carrying out a number of operations such as creating a measurement, alarm, event and updating an inventory managed object.
For example, to create a measurement, I have written the following:
const { data, res } = await c8yClients.measurement.create(measurementBody);
However when I observe the data and res values from a successful call, I am unable to obtain the status code 201 as defined in the API documentation here: Cumulocity - OpenAPI
I know that we can obtain the status code when using the .core.fetch method in the web sdk as follows:
const res = await c8yClients.core.fetch(URL,...)
But as you can see, it is using the .core.fetch. of the web sdk, for which I can obtain the status in the response via res.status. Is this the only way to get the response status code?