> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bizzy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Error handling

## Available error codes

| Status | Description                                                                                                                                       |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| 400    | Bad request. The request or the request body is invalid. Examples: missing required fields, invalid field format.                                 |
| 401    | Unauthorized. The request requires authentication.  This usually means the API key is missing or invalid.                                         |
| 402    | Insufficient credits. You do not have enough credits to perform this request. See [Credit usage](/api-reference/v1/credits) for more information. |
| 403    | Forbidden. The request is not allowed. This may be due to insufficient privileges or attempting to access resources belonging to another user.    |
| 404    | Not found. The requested resource does not exist. This could be due to an incorrect ID or an invalid endpoint.                                    |
| 429    | Too many requests. You have exceeded the rate limit. See [Rate limiting](/api-reference/v1/rateLimiting) for more information.                    |
| 500    | Internal server error. Something went wrong on our side. If this persists, please contact support with the request details so we can investigate. |

## Error format

All errors are returned as JSON objects with a `status` and optionally a `message` field. The `status` field is one of the HTTP status codes defined above, and the `message` is a human-readable explanation of the error.

```json theme={null}
{
  "status": 400,
  "message": "Invalid query"
}
```
