---
title: Error codes
description: Common HTTP error codes and the error response format.
---

| Code | Meaning |
| --- | --- |
| 400 | Invalid request parameters |
| 401 | Unauthorized or invalid API key |
| 403 | Insufficient permissions |
| 404 | Resource not found |
| 429 | Too many requests or rate limiting |
| 500 | Internal server error |
| 501 | Interface not implemented |

## Error response format

```json
{
  "error": {
    "message": "Error description",
    "type": "invalid_request_error",
    "code": "invalid_api_key"
  }
}
```

## Rate limits

Limits can vary by account, route and upstream service conditions. Check the limits shown in your account. For steps to diagnose a failed request, see [HTTP troubleshooting](/en/troubleshooting/http-status-troubleshooting).
