Skip to main content
Auxia uses conventional HTTP response codes to indicate the success or failure of an API request. In general:
  • Codes in the 2xx range indicate success.
  • Codes in the 4xx range indicate an error caused by the request, such as a missing required field, an invalid API key, or a reference to a resource that does not exist. Except for 429, retrying the same request will not succeed.
  • Codes in the 5xx range indicate an error on Auxia’s side. These are rare, and are usually safe to retry.

Error response

Every error response from the API has an application/json body with the following attributes.
Some messages end with a reference ID, such as Reference A0D3427F89CACF13.F26AB72FAA88C751 or [ID: 66A1855B08B0DF57.057CA4DCB18714FF; ...]. Include it when you contact Auxia about a failed request.

HTTP status code summary

Server errors

A 500 response has the standard error body:
A timeout inside Auxia also returns 500, with error code E4896 in the message. 503 and 504 responses returned by the API use the same format. A 5xx response returned by Auxia’s load balancer, rather than by the API itself, has a text/html body instead. For example, a 502:
Handle server errors by status code, not by body.

Handling errors

When you retry, use exponential backoff with jitter: wait about 1 second before the first retry, double the wait after each attempt, and add a random delay. Cap the number of attempts so that a sustained outage does not multiply your traffic.

Retry safety

A request that fails with a 5xx error, or times out on your side, may still have been applied. Before you retry a request that writes data, check whether a duplicate would cause a problem.

Rate limits

Insert Treatment and Update Treatment can be rate-limited per project. When a project exceeds its limit, the API returns 429 with these headers:

Testing error handling

To test how your integration handles errors, stub the Auxia API in your own test environment and return the status codes and bodies on this page. Auxia does not provide a way to trigger server errors on demand.