- Codes in the
2xxrange indicate success. - Codes in the
4xxrange 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 for429, retrying the same request will not succeed. - Codes in the
5xxrange 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 anapplication/json body with the following attributes.
Reference A0D3427F89CACF13.F26AB72FAA88C751 or [ID: 66A1855B08B0DF57.057CA4DCB18714FF; ...]. Include it when you contact Auxia about a failed request.
HTTP status code summary
Server errors
A500 response has the standard error body:
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:
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 a5xx 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 returns429 with these headers: