Error Handling
HTTP requests can fail for a variety of reasons. Snappy provides a standard HTTP status code, an additional error code and a clear message to help you easily understand and handle such errors.
Error responses have the following details:
status
- The type of error (status code).errorCode
- A subcode that further classifies the error (check the specific services for more details)message
- A description of the error.
Note:
While error codes are managed and any change is considered as a breaking change, the error message texts might change from time to time to add more clarity to origin of the error.
Sample Response
{
"status": 401,
"errorCode": 10001,
"message": "Authorization token/key are invalid "
}
For a complete list of all error responses please review the HTTP Status Codes and Error Types.
Updated 7 months ago