get
https://api.macpaw.com/ai/api/v1/errors-reference
This path is for documentation only. All AI Gateway endpoints may return the error responses described in the components below.
HTTP status and Gateway code mapping
| Status | Code (Gateway format) | Meaning |
|---|---|---|
| 400 | BAD_REQUEST | Missing required fields (e.g. model, messages) or invalid request syntax |
| 401 | UNAUTHORIZED | Missing, invalid, or expired authentication token |
| 402 | INSUFFICIENT_CREDITS | Not enough credits to perform the request |
| 403 | FORBIDDEN | Authenticated but not allowed (e.g. team not allowed to access model) |
| 422 | VALIDATION | Invalid values (e.g. max_tokens < 0); check errors[] for field-level details |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests; retry after some time |
| 500 | INTERNAL_SERVER_ERROR | Server or upstream error; use request_id when contacting support |
