> ## Documentation Index
> Fetch the complete documentation index at: https://docs.range.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Risk v3 Errors

> Every error code the v3 risk endpoints return, what it means, and whether a retry can succeed.

Every error from a `/v3/risk` endpoint has the same body: the HTTP status, a fixed `message`, a stable machine `code`, and `retry_after_seconds`.

```json theme={null}
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "network is required for this address: its format does not name one chain (EVM 0x, legacy Bitcoin or Bitcoin Cash, Dogecoin, Polkadot, Sui, …); see GET /v3/risk/networks",
  "code": "network_required",
  "retry_after_seconds": null
}
```

* **Branch on `code`, never on `message`.** Messages are for people and can change. `message` is a list of strings when several query parameters failed validation.
* **Codes are an open list.** Handle a code you do not know by its HTTP status.
* **`retry_after_seconds`** is the number of seconds until a retry can succeed. When it is set, the response also carries a `Retry-After` header with the same value. It is `null` when retrying will not help or the wait is unknown.
* **Errors are free.** A request that ends in an error is not charged. See [Credits](https://docs.range.org/risk-api/risk-v3/credits.md).

## Error codes

| Status | `code` | Meaning | Retry? |
| - | - | - | - |
| 400 | `invalid_request` | A parameter or body field is missing, malformed, or not accepted. | No. Fix the request. |
| 400 | `invalid_address` | `address` is not a valid address. | No. |
| 400 | `network_required` | The address format does not name one chain, such as any `0x` address, and `network` is missing. | No. Add `network`. |
| 400 | `unsupported_network` | `network` is not an id from [List Supported Networks](https://docs.range.org/risk-api/risk-v3/list-networks.md). | No. |
| 400 | `network_address_mismatch` | `network` does not match the address, such as an EVM network with a Cosmos address. | No. |
| 400 | `x_address_unsupported` | An XRPL X-address. Send the classic address that starts with `r`. | No. |
| 400 | `invalid_cursor` | `cursor` is not a `meta.next_cursor` that [List Recorded Screens](https://docs.range.org/risk-api/risk-v3/list-screens.md) returned. | No. |
| 400 | `invalid_time_range` | `end_time` is not after `start_time`. | No. |
| 400 | `invalid_idempotency_key` | The `Idempotency-Key` header is not 1 to 255 printable ASCII characters. | No. |
| 400 | `provider_order_duplicate` | `provider_order` lists a provider more than once. | No. |
| 400 | `provider_order_range_required` | `provider_order` does not include `range`. | No. |
| 400 | `provider_order_invalid` | The request sent both `provider_order` and `screening_provider`, or neither. | No. |
| 400 | `providers_invalid` | `providers` is empty, too long, or names an unknown provider. | No. |
| 400 | `providers_duplicate` | `providers` names a provider more than once. | No. |
| 401 | `unauthorized` | The API key is missing, invalid, or disabled. | No. Check the key. |
| 403 | `forbidden` | The key cannot use this endpoint. | No. |
| 404 | `screen_not_found` | No screen with this `screen_id` in your workspace. | No. |
| 404 | `not_found` | The resource was not found. | No. |
| 409 | `provider_connection_required` | Setting a provider order, or the `providers` of a screen, names a provider your workspace has no connection for. A screen that follows your saved order skips such a provider instead, with `outcome: provider-missing`. | No. Create the connection first. |
| 409 | `idempotency_in_progress` | The first request with this `Idempotency-Key` is still running. | Yes, after `Retry-After` (1 second), to receive its result. |
| 422 | `idempotency_key_reuse` | This `Idempotency-Key` was already used for a different request. | No. Send a new key. |
| 422 | `network_not_covered` | The provider that screens this network for Range does not cover it for risk, and no later provider in your order answered. This happens only on networks Range does not index. | No. It does not change on a retry. |
| 422 | `provider_unauthorized` | Your own key was rejected by the provider that screens this network, and no later provider in your order answered. This happens only on networks Range does not index. | No. Update the connection's key. |
| 429 | `rate_limited` | Too many requests for this key, or your credits are used up. | Yes, with backoff. If it persists, check your credits. |
| 429 | `network_monthly_limit` | Your workspace used its monthly limit for screens answered on Range's account: screens on networks Range does not index, counted together across every network, and no later provider in your order answered. | Yes, after `Retry-After`: the first day of next month (UTC). |
| 503 | `range_unavailable` | Range could not answer, and no other provider could answer in its place. | Yes, shortly. |
| 503 | `provider_unavailable` | The provider that screens a network Range does not index failed, or your own key for it could not be used. | Yes, shortly. |
| 503 | `all_providers_failed` | None of the providers named in `providers` answered. Not charged, not recorded. | Yes, shortly. |
| 503 | `network_capacity_exhausted` | Range has switched off screens on networks it does not index, or used up its capacity for them this month. | No, not until Range restores them. |
| 500 | `internal_error` | An unexpected error. | Yes, with backoff. |

A 401 rejected before the request reaches the endpoint, or a 500 from an unexpected failure, can arrive without a `code`. Handle it by status.

## Errors inside a successful screen

A screen can succeed while one of its providers failed. That failure is not an HTTP error: it is a result in `results[]` with `status: failed`, an `outcome`, and a `problem` block.

| `outcome` | Meaning |
| - | - |
| `provider-missing` | Your workspace has no connection for that provider, so it was not called. |
| `provider-unauthorized` | The provider rejected your key. `problem.status` is 401 or 403. Update the connection's key. |
| `provider-error` | The provider was down, timed out, or rate limited you. A 429 from your provider shows as `problem.status: 429`, with `problem.retry_after_ms` when the provider said how long to wait. It is also the outcome of a provider Range paused, after 5 failures in a row (`problem.status: 503`) or because your plan with it is out of credits or over its rate limit (`problem.status: 429`): it was not called, `problem.retry_after_ms` says when Range will check it again, and its `warnings` say why it was paused. See [Timeouts](https://docs.range.org/risk-api/risk-v3/screen-address.md#timeouts). |
| `unsupported-network` | The provider does not cover this network. |
| `sanctions-only` | The provider only checks sanctions lists on this network, so another provider gave the full answer. Range's own list check reads `sanctions-only` too. On a screen with one answer it is part of `decision`; it is never the full answer. |
| `range-unavailable` | Range's own screen could not answer. |

`outcome` is an open list. `problem.detail` is always `null`: no text from a provider's error is passed on. See [Screen an Address](https://docs.range.org/risk-api/risk-v3/screen-address.md#worked-examples) for examples.

## Retrying safely

* Fix 400, 401, 403, 404, 422 and 409 `provider_connection_required` errors before you send the request again. They fail the same way every time. 422 `network_not_covered` means this network cannot be screened for risk: do not retry it.
* For 409 `idempotency_in_progress`, wait for `Retry-After` and send the same request with the same key.
* For 429 `rate_limited`, 500 and 503 `provider_unavailable`, `range_unavailable` or `all_providers_failed`, retry with exponential backoff and a retry cap.
* For 429 `network_monthly_limit`, wait for `Retry-After`. For 503 `network_capacity_exhausted`, do not retry in a loop.
* Send an `Idempotency-Key` on every screen. A retry with the same key within 10 minutes returns the screen already answered, free. Without a key, a screen retried after a client timeout is a new screen: if the first request was answered, both are recorded and charged. See [Safe retries](https://docs.range.org/risk-api/risk-v3/screen-address.md#safe-retries-and-your-own-reference).

For errors on other Range endpoints, see [Errors and rate limits](https://docs.range.org/resources/errors-and-rate-limits.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.