Smart REST Response codes

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:
40,/meta/connect,402::Unknown client
86,0,handshake

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:
86,0,handshake