Skip to content

Error Codes

When an API request encounters an error, Oneverse API returns a response message containing error details and a corresponding HTTP status code. This guide provides a summary of the error codes and HTTP status codes used across the Oneverse API.

HTTP Status Codes Summary

Oneverse returns specific HTTP status codes in the response header.

Status CodeDescriptionDetails
200OKEverything worked as expected.
401UnauthorizedNo valid authentication provided.
403ForbiddenLack of permission to access the resource.
404Not FoundThe requested resource could not be found.
422Bad RequestFailed due to validation errors.
429Too Many RequestsToo many requests hit the API too quickly.
500Server ErrorSomething went wrong on the server.

Error Codes Summary

The following error codes are used in the response body.

Error CodeDescription
UNKNOWN_ERRORUnknown error
UNAUTHORIZEDUnauthorized request
TOO_MANY_REQUESTSToo many request
TOO_MANY_ATTEMPTSToo many login attempts
MISSING_HMACMissing signature header
INVALID_HMACInvalid HMAC signature
INVALID_CREDENTIALSInvalid login credentials
VALIDATION_ERRORValidation failed
UNPROCESSABLE_CONTENTValidation error
RESOURCE_NOT_FOUNDCould not find the specific resource
PAYMENT_ERRORPayment failed
LIST_ERRORList resources error
SHOW_ERRORShow resource error
CREATE_ERRORCreate resource error
UPDATE_ERRORUpdate resource error
DELETE_ERRORDelete resource error

Example Response Body

json
{
  "status": "error",
  "code": 401,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Unauthenticated."
  },
  "data": null
}