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

# Errors and retries

> Handle structured API errors and Request IDs

```json theme={null}
{
  "error": {
    "message": "Human-readable message",
    "type": "invalid_request_error",
    "param": null,
    "code": "invalid_request",
    "request_id": "req_..."
  }
}
```

Retry only HTTP `429`, `502`, and `503` with exponential backoff and jitter. Do not retry authentication, permission, archived-project, invalid-request, or model-restriction errors without changing the request or configuration.

Include `x-request-id` when contacting support.
