Error Responses
An error response always contains the members code, status, and error.
If a request encounters an error, the API halts processing and returns an error message. As a result of this behavior, a request with multiple errors receives a response containing only information on the first error that the API finds during the processing of that request.
Error Response Format
Status: HTTP/1.1 [Error Code] [Error Message] { "code" : [Error Code], "status" : "fail", "error" : "[Error Message]" }
Error Codes
Code | Error | |
400 | Bad Request | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | |
405 | Method Not Allowed | |
406 | Not Acceptable | |
408 | Request Timeout | |
409 | Conflict | |
500 | Internal Server Error | |
501 | Not Implemented |