> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://flash.outtake.ai/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://flash.outtake.ai/docs/_mcp/server.

# Errors

> Every Flash API error code, what it means and whether to retry.

Every error body has the same shape:

```json
{ "error": "<code>", "reason": "<sentence>", "request_id": "req_..." }
```

`reason` says what to do next, so show it to the user when your agent stops. Quote `request_id`, also sent as `x-request-id`, and the `x-agent-armor-version` header when you contact support. Limit refusals add a `limit` object; see [Limits and usage](/docs/limits). The key-claim endpoints follow OAuth instead; see [Authentication](/docs/authentication#an-agent-claims-a-key).

| Error                       | Meaning, and what to do                                                                   |
| --------------------------- | ----------------------------------------------------------------------------------------- |
| `400 invalid_request`       | The body isn't valid JSON in the documented shape. Fix it.                                |
| `401 unauthorized`          | The key is missing, mistyped or revoked. Get a new key.                                   |
| `403 forbidden`             | This key may not make this request, such as `internal_only` without an internal key.      |
| `403 scope_required`        | The key lacks the scope this endpoint needs, which `WWW-Authenticate` names.              |
| `404 not_found`             | The scan doesn't exist, or it belongs to another account.                                 |
| `422 rejected`              | Flash won't scan this URL, for example a private network address. Don't treat it as safe. |
| `422 objective_unavailable` | An objective is deprecated. Send what `reason` names instead.                             |
| `429 rate_limited`          | A limit is used up, or the engine is busy. Retry after `Retry-After`.                     |
| `503 disabled`              | Scanning is paused. Retry with backoff, after at least a minute.                          |
| `503 unavailable`           | Flash is starting, stopping or failed. Retry with backoff, after at least a minute.       |

Only `429` and `503` are worth retrying.

A new code is an additive change, and an existing code is never renamed, so handle a code you don't know by its HTTP status.

## Requests Flash refuses before scanning

A refused request scans nothing and counts against no limit. Flash checks the body's shape first (`400`), then whether each objective is still served (`422`). An objective your plan doesn't include isn't an error: the scan runs and answers it [`refused`](/docs/objectives#plans).

* An objective that isn't in the list: `400 invalid_request`

  objectives must list between 1 and 6 of safety, domain_ownership, entity_reputation, entity_representation, entity_extraction, entity_legitimacy.

* The removed `objective` or `entities` field: `400 invalid_request`

  objective and entities were removed. Send objectives instead, a list such as \["safety", "entity_representation"]; entity_representation finds the page's entities from the URL alone.

* A deprecated objective: `422 objective_unavailable`

  The entity_legitimacy objective is deprecated. Send domain_ownership or entity_reputation instead, or \["safety"] for the base safety verdict alone.