Skip to main content

Errors & responses

The API uses standard HTTP status codes to indicate the outcome of a request. Successful requests return 2xx; client and server problems return 4xx and 5xx respectively.

Common status codes​

StatusMeaningWhat to do
200 OKThe request succeeded.Read the response body.
201 CreatedA resource was created.Use the Location header to find the new resource.
204 No ContentThe request succeeded with no response body.No action needed.
400 Bad RequestThe request was invalid (validation failed or malformed input).Inspect the validation errors and correct the request.
401 UnauthorizedAuthentication is missing or invalid.Check your X-API-Key and Authorization headers — see Authentication.
403 ForbiddenAuthenticated, but not permitted to perform the operation.Ensure your credentials have the required permission.
404 Not FoundThe requested resource does not exist.Check the identifier in the URL.
429 Too Many RequestsYou have exceeded the rate limit.Honour the Retry-After header and back off — see Rate limiting.
500 Internal Server ErrorSomething went wrong on the server.Retry later; if it persists, contact support.

Validation errors (400)​

A 400 response contains a summary message and a list of field-level errors under errors[]:

{
"message": "One or more validation errors occurred.",
"errors": [
{
"message": "The ConstituentType field is required.",
"field": "ConstituentType"
}
]
}
  • message — a human-readable summary. It may repeat the rule's message when only one rule failed. Read errors[] for the details.
  • errors[] — zero or more validation items, each with the offending field and a descriptive message. Always present. A missing or null required field is reported as The {Field} field is required.. A value that cannot be read, such as text sent for a date or malformed JSON, is reported as The input was not valid. with the JSON path of the value as the field, for example $.mainContact.dateOfBirth, or $ when a required number, boolean or identifier is missing. An empty body is reported as A non-empty request body is required. with an empty field.

Rate limit errors (429)​

Rate limit responses use the following shape and set a Retry-After header (in seconds):

{
"error": {
"code": "TooManyRequests",
"message": "Rate limit exceeded. Please retry after the specified period.",
"retryAfterSeconds": 60
}
}

Server errors (500)​

For server errors, avoid retrying immediately in a tight loop. The API does not return internal detail in the response for security reasons; use the HTTP status code to drive your error handling.