Errors and responses
Amnis uses conventional HTTP response codes to indicate the success or failure of an API request. Typically a status code in the 2xx range indicates success, status codes in the 4xx range indicate an error that has been triggered due to the information provided (for example; a parameter does not meet the validation requirements or was not provided), and status codes in the 5xx range indicate an error with our servers.
HTTP Response errors
The API uses the following error codes:
Code | Description |
---|---|
200 | OK - The request was processed successfully. |
201 | Created - The request was processed successfully. |
204 | OK - The request was processed successfully but no content to return. |
400 | Bad Request -- Your request is invalid. |
401 | Unauthorised -- Your access token is wrong. |
403 | Forbidden -- Access to the requested resource or action is forbidden. |
404 | Not Found -- The requested resource could not be found. |
422 | Unprocessable Content -- We could not process your request due to invalid data provided. |
429 | Too Many Requests -- You're sending too many requests. |
500 | Internal Server Error -- We had a problem with our server. Try again later. |
503 | Service Unavailable -- We're temporarily offline for maintenance. Please try again later. |