Skip to main content

Error Handling

The Nolt API uses conventional HTTP response codes and GraphQL errors to indicate the success or failure of an API request.

HTTP Status Codes

  • 200 - Success
  • 400 - Bad Request
  • 401 - Unauthorized
  • 403 - Forbidden
  • 404 - Not Found
  • 429 - Rate Limit Exceeded
  • 500 - Server Error

GraphQL Errors

GraphQL errors will include:

  • Error message
  • Error code
  • Path to the error
  • Additional details when available

Example error response:

{
"errors": [
{
"message": "Rate limit exceeded",
"extensions": {
"code": "RATE_LIMIT_EXCEEDED"
}
}
]
}