Error handling
An error always results in a response with a 4XX or 5XX HTTP status code.
The most common HTTP status codes returned by the API are:
Error format
The response contains a JSON body conforming to RFC 9457, the “problem details” format.
ErrorResponse object
An ErrorResponse contains the following properties:
type- A URI reference that identifies the type of problem.title- A short human-readable summary of the problem.detail- A human-readable explanation of what went wrong.status- A HTTP status code generated by the server.code- A unique code representing the type of error that occurred.errors(optional) - A list ofErrorDetailobjects to accompany a problem details response.
Example:
ErrorDetail object
An ErrorDetail contains the following properties:
detail- A human-readable explanation of what went wrong.pointer(optional) - A JSON pointer to the request body property that caused the error.parameter(optional) - The name of the query string or path parameter that caused the error.code- A unique code representing the type of error that occurred.
Example:
Error codes
Whilst an error is always returned with a 4XX or 5XX HTTP status code, it also contains a code
that can be used to uniquely identify the exact problem that occurred.
The following is an exhaustive list of error codes that the API can return. You can click a specific error code to get more information and view an example response: