API Responses

HTTP status codes

Truugo API request returns an HTTP status code.

HTTP status codes

For successful requests, Truugo API returns 2xx status codes.

For failed requests, Truugo API returns 4xx or 5xx status codes.

Truugo API currently returns the following HTTP status codes:

Status code Description
200 OK The request succeeded.
400 Bad Request Request is not well-formed, syntactically incorrect, or violates schema.
401 Unauthorized Authentication failed due to invalid authentication credentials.
403 Forbidden The request was rejected due to insufficient permissions.
404 Not Found The specified resource does not exist.
405 Method Not Allowed The server or API does not implement the requested HTTP method.
422 Unprocessable Entity The API cannot complete the requested action, or the requested action is semantically incorrect or fails business validation.
500 Internal Server Error An internal server error has occurred.
503 Service Unavailable Service is temporarily unavailable due to heavy traffic or maintenance.
504 Gateway Timeout The server was unable to return a response within a specified time limit.