Errors

The Delio Core API returns valid status codes for every request, including when something goes wrong whilst working with the API. Let's look at some status codes and error types you might encounter.

The status code within in the response will indicate if your request was successful or not. If a response is unsuccessful, you can discern the type of error from the status code and the associated error message.


Status codes

Here is a list of the different categories of status codes returned by the Delio Core API. These can be used to understand if a request was successful.

  • Name
    2xx
    Description

    A 2xx status code indicates a successful response.

  • Name
    4xx
    Description

    A 4xx status code indicates a client error — this is normally a validation issue or permissions problem. In this instance, verify you have permissions to complete the action and ensure the provided payload is valid.

  • Name
    5xx
    Description

    A 5xx status code indicates a server error — this means something has gone wrong on our end. In this instance, please contact support.