Errors and retries
Handle denied usage and uncertain responses.
API errors return a non-success HTTP status with error and message fields.
Use the generated schema for the current response contract.
| Status | Action |
|---|---|
| 400 | Fix the request or its input values. |
| 401 | Replace an invalid key or refresh the user login. |
| 403 | Check your key and selected environment. |
| 404 | Check the resource and selected environment. |
| 409 | Check credit funding, feature access, Stripe setup, or conflicting request terms. |
| 413 / 415 | Reduce the body or send supported JSON. |
| 500 | Inspect the result before retrying a write. |
A denied feature check is a successful response with allowed: false, not an
HTTP failure. Tracking can still fail after an allowed check because checks do
not reserve credits.
For tracking and manual grants, retry an uncertain response with the same idempotency key and identical input. Do not use a new key for the same work.
Checkout and resource creation do not share that retry guarantee. A lost response can mean the operation completed. Inspect the dashboard or the resource ID before creating another checkout, deployment, application, or environment.
The SDK throws Error for API, validation, and transport failures and does not
automatically retry requests.
