Error codes
HTTP status codes are used to indicate the success or failure of an API request. In general 2xx indicates success, 4xx indicates failure due to information provided by you (eg. a required parameter is missing) while 5xx indicates that the failure was caused by the SnapScan servers (or we were unable to service the request at this time). A valid error response from us will always be a JSON object containing a message key.
Example of an error response when an invalid parameter is provided:
HTTP/1.1 400 BAD REQUEST
Content-Type: application/json
{
"message": "startDate is not valid"
}