Error Codes
Zywrap uses standard HTTP status codes to indicate the success or failure of your API requests.
In general: codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted). Codes in the 5xx range indicate an error with Zywrap's servers.
Error Response Format
All error responses will return a JSON object with an error key containing a machine-readable code and a human-readable message.
json
Common Error Codes
| Status | Code | Description |
|---|---|---|
| 400 | bad_request | The request was unacceptable, often due to missing a required parameter. |
| 401 | unauthorized | No valid API key provided. |
| 402 | payment_required | Your account has insufficient credits or your subscription has expired. |
| 403 | forbidden | The API key doesn't have permissions to perform the request. |
| 404 | not_found | The requested resource (e.g., wrapper code) could not be found. |
| 429 | rate_limit_exceeded | Too many requests hit the API too quickly. Please implement backoff. |
| 500 | internal_server_error | Something went wrong on Zywrap's end. (These are rare). |

