The error code 40 will be removed in Cumulocity IoT 10.8 January 2021 release.
Why are we doing this? Currently when connecting to Cumulocity via SmartREST 1.0 it is possible to receive an error code 40, often like this:
This error means that the platform has restarted, session has expired, or some other connectivity problem occured. This number is misleading, because according to documentation 40 means “Template not found.”.
When the 40 error is removed the error will look like this: