ThingWorx Edge C SDK > Error Codes > Message Code Errors
Message Code Errors
The message code errors can be returned when the SDK makes a request to ThingWorx Platform. They can also be the return values for property/service requests executed by the application using the SDK. For example, if the server queried the SDK application for the property ‘temperature’, but the application did not have that property, it could return TW_NOT_FOUND. The server could also return the same code if the application asked the server for a property that it did not have defined.
Most of these are standard HTTP error codes. You can view more information about them at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.
Code
Message
Troubleshooting
1100
TW_BAD_REQUEST
The HTTP request contained syntax errors, so the server did not understand it. Modify the request before attempting it again..
1101
TW_UNAUTHORIZED
The request requires authentication. This error results from a failed login attempt — whether from credentials that were not valid or from the request being sent before authentication occurred.
1102
TW_ERROR_BAD_OPTION
An option or a parameter for a function has a value that is not valid or is not spelled correctly (and so is not recognized).
1103
TW_FORBIDDEN
ThingWorx Platform is denying access to the requested resource. Check your permission settings on ThingWorx Platform.
1104
TW_NOT_FOUND
This message is returned for anything that was not found — a property, a service, a thing, a Data Shape, and so on.
1105
TW_METHOD_NOT_ALLOWED
The specified method is not allowed. Check the spelling and syntax of your code.
1106
TW_NOT_ACCEPTABLE
Not acceptable.
1107
TW_PRECONDITION_FAILED
The precondition for the operation was not met.
1108
TW_ENTITY_TOO_LARGE
This error occurs if you attempt to send a Property, or Service or Event parameters that are too large for ThingWorx Platform to handle.
1109
TW_UNSUPPORTED_CONTENT_FORMAT
This error occurs if you attempt to send a Property, or Service or Event parameter that has the wrong baseType as defined on ThingWorx Platform.
1110
TW_INTERNAL_SERVER_ERROR
An error occurred on ThingWorx Platform while processing this request.
1111
TW_NOT_IMPLEMENTED
ThingWorx Platform may return this error if you attempt a function that is not implemented.
1112
TW_BAD_GATEWAY
A gateway could be bad if it cannot communicate to the next component in the chain.
1113
TW_SERVICE_UNAVAILABLE
The requested service is not defined. You could also use the TW_NOT_FOUND error code, but this one is more specific.
1114
TW_GATEWAY_TIMEOUT
If the application sends a request to ThingWorx Platform and does not get a response within some amount of time, the service call results in this error. The amount of time is configurable. Refer to Troubleshooting an Error Pusing/Persisting Properties and Property Lists.
Was this helpful?