# Error codes

> Every Shotfly API error code and what to do about it.

Every error response has the same shape: `{ "error": { "code", "message", "request_id", "docs_url" } }`. Errors are never charged.

| Code | HTTP status | Meaning |
| --- | --- | --- |
| `invalid_params` | 400 | A parameter is missing, unknown or out of range. `details` lists each problem. |
| `url_not_allowed` | 400 | The URL points at a private, internal or otherwise disallowed destination. |
| `unauthorized` | 401 | No API key, an unknown or revoked key, or a pk_ key without a signature. |
| `quota_exceeded` | 402 | Your plan has no credits left for this billing period. Upgrade or wait for the next period. |
| `credits_limit` | 402 | The request would cost more than `max_credits` allows. |
| `forbidden` | 403 | Your key is valid but not allowed to perform this action. |
| `signature_invalid` | 403 | The signature does not match the parameters. Sign every parameter except `signature`. |
| `signature_expired` | 403 | The signed URL is past its `expires` time. |
| `domain_blocked` | 403 | This domain is on our blocklist (for example phishing or malware). |
| `account_suspended` | 403 | The account is suspended. Contact support. |
| `not_found` | 404 | The endpoint, request or temporary link does not exist (or has expired). |
| `target_blocked` | 422 | The site served a bot challenge. Try `stealth=true` or `escalation=auto`. Not charged. |
| `blank_page` | 422 | The page rendered blank. Try `wait_for_selector` or `delay`. Not charged. |
| `target_http_error` | 422 | The site returned an HTTP error or could not be reached. Not charged. |
| `cookie_wall` | 422 | A cookie banner or wall stayed on the page and could not be removed. Not charged. Set `block_cookie_banners=false` to capture the page with it. |
| `rate_limited` | 429 | Too many requests per minute for your plan. Respect `Retry-After`. |
| `concurrency_limited` | 429 | Too many requests in flight for your plan. Retry when one finishes. |
| `internal_error` | 500 | Something failed on our side. Not charged; please retry. |
| `render_failed` | 502 | Every rendering option failed. Not charged; please retry. |
| `service_unavailable` | 503 | The service is temporarily unavailable. Not charged; please retry. |
| `render_timeout` | 504 | The render did not finish within `timeout`. Not charged. |

---

Source: https://shotfly.dev/docs/errors · Last updated 2026-11-27
