> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

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

# Errors

Errors use the `application/problem+json` media type. Branch on `code`. The `title` is fixed for each code, and `detail` explains this occurrence.

```json
{
  "type": "https://developers.outpave.com/errors/invalid-request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The request does not match the operation's schema.",
  "code": "INVALID_REQUEST",
  "requestId": "4f6c1d2e-0a4b-4c55-9f37-2e8b9d1a7c10",
  "errors": [
    { "detail": "Unknown query parameter 'expand'", "parameter": "expand" }
  ]
}
```

| Member      | Description                                                                                                                                                                                             |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type`      | Link to the code's entry below, for example `https://developers.outpave.com/errors/invalid-request`.                                                                                                    |
| `title`     | Short summary, fixed for each code.                                                                                                                                                                     |
| `status`    | The HTTP status code.                                                                                                                                                                                   |
| `detail`    | Explanation of this occurrence.                                                                                                                                                                         |
| `code`      | Stable error code. Accept codes not listed here.                                                                                                                                                        |
| `requestId` | The `X-Request-Id` of the failed request. Quote it when you contact support.                                                                                                                            |
| `errors`    | Optional list of individual problems. Each has a `detail` and at most one of `pointer` (a JSON Pointer into the body, such as `#/policy/dailyLimit`), `parameter` or `header`, plus an optional `code`. |

## Error codes

| Status | Code                             | What to do                                                                                                                                                                                                         |
| ------ | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `400`  | `INVALID_REQUEST`                | The request does not match the operation's schema. Fix it using `errors`.                                                                                                                                          |
| `400`  | `IDEMPOTENCY_KEY_REQUIRED`       | Send an `Idempotency-Key` header.                                                                                                                                                                                  |
| `400`  | `INVALID_CURSOR`                 | The cursor is malformed, expired or from a different request. Restart from the first page.                                                                                                                         |
| `400`  | `ACCOUNT_HOLDER_REQUIRED`        | Send `Account-Holder` with a platform key.                                                                                                                                                                         |
| `400`  | `INVALID_ACCOUNT_HOLDER_CONTEXT` | `Account-Holder` is not valid for this operation.                                                                                                                                                                  |
| `401`  | `INVALID_API_KEY`                | Check the API key and the calling address.                                                                                                                                                                         |
| `401`  | `INVALID_ACCESS_TOKEN`           | Exchange the API key for a new access token.                                                                                                                                                                       |
| `403`  | `PERMISSION_DENIED`              | Add the missing permission to the key.                                                                                                                                                                             |
| `403`  | `API_KEY_NOT_ENROLLED`           | Enable the key for v2.                                                                                                                                                                                             |
| `403`  | `ACCOUNT_HOLDER_NOT_ACCESSIBLE`  | The key cannot act on that account holder.                                                                                                                                                                         |
| `404`  | `RESOURCE_NOT_FOUND`             | The resource does not exist or belongs to another account holder.                                                                                                                                                  |
| `405`  | `METHOD_NOT_ALLOWED`             | The path does not support this method.                                                                                                                                                                             |
| `409`  | `INVALID_STATE`                  | The resource's current state does not allow this action. Read it and decide again.                                                                                                                                 |
| `409`  | `RESOURCE_ALREADY_EXISTS`        | A resource with these unique values exists.                                                                                                                                                                        |
| `409`  | `IDEMPOTENCY_IN_PROGRESS`        | A request with this key is still running. Retry later with the same key.                                                                                                                                           |
| `409`  | `IDEMPOTENCY_KEY_REUSED`         | This key was used with a different request. Use a new key for a new operation.                                                                                                                                     |
| `413`  | `PAYLOAD_TOO_LARGE`              | The body is larger than 256 KB.                                                                                                                                                                                    |
| `415`  | `UNSUPPORTED_MEDIA_TYPE`         | Send the body as `application/json`.                                                                                                                                                                               |
| `422`  | `VALIDATION_FAILED`              | A business rule refused the request. See `errors`.                                                                                                                                                                 |
| `422`  | `RELATED_RESOURCE_NOT_FOUND`     | A resource the body refers to does not exist.                                                                                                                                                                      |
| `422`  | `NOT_ELIGIBLE`                   | The account holder, program or resource cannot perform this action.                                                                                                                                                |
| `422`  | `PROVIDER_REJECTED`              | The request was refused, but part of it may already have taken effect. For example, a refused card replacement can leave the old card canceled. Read the resource and the problem's `detail` before you act again. |
| `429`  | `RATE_LIMIT_EXCEEDED`            | Wait the seconds in `Retry-After`, then retry.                                                                                                                                                                     |
| `500`  | `API_ERROR`                      | Retry with exponential backoff.                                                                                                                                                                                    |
| `502`  | `OPERATION_OUTCOME_UNKNOWN`      | Retry later with the same `Idempotency-Key`, never a new one.                                                                                                                                                      |
| `503`  | `SERVICE_UNAVAILABLE`            | Retry after `Retry-After`.                                                                                                                                                                                         |

## Retrying

* Retry `429`, `500`, `502` and `503`, and `409 IDEMPOTENCY_IN_PROGRESS`, with the same `Idempotency-Key`.
* Do not retry other `4xx` responses unchanged.
* `502 OPERATION_OUTCOME_UNKNOWN` means the outcome is not known yet. Retries with the same key return this response until it is, then the final response. A new key could perform the operation twice.