Errors
Four statuses are worth handling explicitly. The rest behave the way the upstream API does.
Statuses
| Status | Means | Do |
|---|---|---|
| 401 | Key missing, unknown, or not attached to an account. | Check the header name for the format you are using. |
| 402 | The cap cannot cover even a minimal response. | Top up, or raise the cap on the key. |
| 404 | Model id not in the catalogue. | Query /v1/models and use the exact id. |
| 502 | The upstream provider failed. | Retry. The hold is released, so you were not billed. |