# Errors

> What error codes mean and what to do about them.

Errors come back as JSON with a message that explains what happened, and often a `code` such as `model_not_found` or `insufficient_user_quota`. The HTTP status tells you what kind of problem it is:

| Status | Meaning | What to do |
| --- | --- | --- |
| 400 | The request is malformed. | Check the body against the API format. |
| 401 | The key is missing, wrong, disabled or expired. | Check the Authorization header and the key's status. |
| 403 | The request isn't allowed: balance or key limit used up, model or IP not allowed. | Top up, or check the key's limits. |
| 404 | The model ID doesn't exist, or the model is switched off. | Check the ID against GET /v1/models. |
| 413 | The request is bigger than 32 MB. | Send less, or send images as links. |
| 415 | The request body is compressed. | Send it without Content-Encoding. |
| 429 | Too many requests at once or per minute. | Wait a couple of seconds and retry. See Limits. |
| 5xx | The upstream provider failed. | Retry after a few seconds. |
