Error Responses
Overview
In case of an error an HTTP error status code is returned, as well as a body response.
HTTP error codes
| Status | Code | Default message | 
|---|---|---|
| 400 | 1 | Malformed resource ID | 
| 400 | 2 | Bad Request | 
| 400 | 3 | Missing Query Parameter | 
| 400 | 10 | Unexpected Query Parameter value | 
| 401 | 1 | Invalid API KEY | 
| 404 | 1 | Resource not found | 
| 404 | 2 | Unknown URI, did you make a spelling mistake? | 
| 500 | 1 | Internal Error | 
Body response
The body response is structured as follows:
{
  "status": 404,
  "code": 1,
  "message": "Resource Not found"
}