Error Handling
Conventional HTTP response codes are used to indicate if a request failed or was successful.
Codes in the 2xx range indicate success.
Codes in the 4xx range indicate that the request failed. In that case,
the JSON response will hold an error code and human-readable error message.
|
Example of an error
{
"error_type": "payload_error", "message": "There was an error." } |