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

# Errors

> Error response format and HTTP status codes.

Errors come back as JSON with an `error` object:

```json theme={null}
{
  "error": {
    "message": "…",
    "type": "…",
    "code": "…"
  }
}
```

| Status | Meaning |
| - | - |
| `400` | Invalid request parameters |
| `401` | API key missing or invalid |
| `404` | Path does not exist, usually a typo in the URL |
| `429` | Rate limit exceeded |
| `500` | Internal server error |
| `503` | No upstream is currently available for this model, or the model name does not exist. Retry later or switch models |

The wording of error.message can change. Handle errors by HTTP status code rather than matching the message text.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.