Errors

In the event of an error, the server will return the relevant HTTP response code. Typically, the response body will contain a JSON object, with:

  • An error status code
  • A textual message (with a brief description of the error)

General format:

{
   "http_status": http_status,
   "message": error_message
}

Example:

{
    "http_status": 404,
    "message": "Resource not found"
}