Errors

The Callr API utilizes standard HTTP response codes to signify the outcome of API requests:​

Code rangeDescription
200Everything worked as expected.
201An object was successfully created.
202A request is being processed.
204Everyting worked as expected (empty response).
400Bad Request.
401Unauthorized (authentication failed).
403Forbidden (authentication required or failed, or action is not permitted).
405Method not allowed (GET, POST, PUT...).
500Problem with Callr's servers (should not happen).

By adhering to these conventions, the Callr API ensures clear communication regarding the status of each request.

Most errors will return a JSON object:

{
  "code": "machine-error-code",
  "message": "human readable error message"
}