Skip to content

HTTP Error Codes ​

Truto API makes use of standard HTTP status codes to indicate the success or failure of an API request. Here are the HTTP status codes you might encounter while using Truto API:

200 - Success ​

The request was successful, and the response body will include the requested resource or information.

201 - Created ​

The request was successful, and a new resource was created as a result. This is typically the response to POST requests that result in the creation of a new resource.

204 - No Content ​

The request was successful, but there is no representation to return (i.e., the response is empty).

400 - Bad Request ​

The request could not be understood or was missing required parameters. Ensure that request has been properly formatted before re-sending.

401 - Unauthorized ​

Authentication failed or was not provided. Ensure your API token is correct and present in the Authorization header.

403 - Forbidden ​

The authenticated user does not have access to the requested resource. This can also indicate that you've exceeded the permissions of your API token.

404 - Not Found ​

The requested resource could not be found. This error can be due to a temporary or permanent condition.

429 - Too Many Requests (Rate Limited) ​

Too many requests have been sent in a given amount of time and the limit has been exceeded. Pause requests, use exponential back-off, or inspect the Retry-After header if available.

5xx - Internal Server Error ​

Something is wrong on our end, and we're not able to fulfill the request currently. These are server-side errors and likely not an issue with your request.

In the case of receiving one of these errors, it's recommended to implement a retry mechanism into your API integration to handle these cases automatically.