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

# Errors

> Understand ImagineArt API error responses, HTTP codes, and when to retry.

Errors return `status: "error"`, a numeric `code` and a readable `message`.

```json theme={null}
{ "status": "error", "code": 1000, "message": "The bearer token is missing from the header." }
```

| HTTP | Meaning | Retry |
| - | - | - |
| 400 | Invalid body, unknown model or field, or missing key | No |
| 401 | Invalid, revoked or expired key | No |
| 402 | Out of credits, or the key reached its limit (code 1210) | After a top-up or reset |
| 404 | Generation not found in your organization | No |
| 410 | Model disabled | No |
| 422 | Prompt rejected by the content filter (Z-Image) | No |
| 429 | Rate limit reached (1,000 POST and 200 GET requests / min per organization) | After Retry-After seconds |
| 451 | Prompt rejected (image models) | No |
| 500 | Server or upstream failure | Yes, with backoff |

A generation that fails after it starts isn't an HTTP error: it ends with `data.status` = `failed`.


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