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

# Errors

> Every version 2 error is RFC 9457 problem details with a stable code.

## Error shape

An error response has the content type `application/problem+json`. Its body is [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem details, with one extra field, `code`:

```json theme={null}
{
  "type": "https://docs.solidroad.com/api/errors/invalid_request",
  "title": "The request is not valid",
  "status": 400,
  "detail": "One or more parameters are not valid.",
  "instance": "abc12-1793279628409-14eba17502cd",
  "code": "invalid_request",
  "errors": [{ "field": "limit", "code": "too_big" }]
}
```

| Field | Type | Meaning |
| - | - | - |
| `type` | string | A URI for the error code. |
| `title` | string | A short summary of the error code. |
| `status` | integer | The HTTP status. |
| `detail` | string | What went wrong in this request, and often how to fix it. |
| `instance` | string | The ID of this request. Give it to support when you contact us. |
| `code` | string | The error code, from the table below. |
| `errors` | array | Only when one or more parameters are not valid. One entry for each field, with `field` and `code`. |

Read `code` in your client. It does not change. The text of `title` and `detail` can change.

In `errors`, `code` is the reason that the field failed, such as `invalid_type`, `too_big`, `invalid_value` or `unrecognized_keys`. The `field` is `request` when the problem is with the whole request, such as a query parameter that the endpoint does not take.

## Error codes

| `code` | Status | Retry? |
| - | - | - |
| `invalid_request` | 400 | No |
| `unauthorized` | 401 | No |
| `forbidden` | 403 | No |
| `insufficient_scope` | 403 | No |
| `api_key_blocked` | 403 | No |
| `not_found` | 404 | No |
| `method_not_allowed` | 405 | No |
| `conflict` | 409 | Yes |
| `rate_limited` | 429 | Yes, after `Retry-After` |
| `internal_error` | 500 | Yes, with backoff |
| `unavailable` | 503 | Yes, with backoff |

### invalid\_request

A parameter is missing, has the wrong type or is not allowed. This includes a `filter` or a `cursor` that the API cannot read, and a query parameter that the endpoint does not take. Fix the request. `detail` or `errors` tells you what to change.

### unauthorized

The request has no `Authorization: Bearer <key>` header, or the key is not valid or was revoked. Check the key, or create a new one.

### forbidden

Your workspace cannot use this feature or plan. Contact your Solidroad admin.

### insufficient\_scope

The key does not have the scope that this endpoint needs. `detail` names the scope, such as `assignments:read`. Use a key that has it.

### api\_key\_blocked

Solidroad has blocked this key. Retrying will not help, and neither will a change to the request. Contact support.

### not\_found

The path is not a version 2 endpoint, or no record with this ID is visible to your key. The response is the same when an ID has the wrong prefix, belongs to another workspace or does not exist.

### method\_not\_allowed

Version 2 only reads, so it refuses anything but `GET`, `HEAD` or `OPTIONS` on every path. The `Allow` header lists what it takes.

### conflict

The record changed while the request ran. Send the request again.

### rate\_limited

You sent too many requests. Wait for the number of seconds in the `Retry-After` header, then send the request again. Read [Rate limits](https://solidroad.mintlify.site/api-reference/v2/rate-limits.md).

### internal\_error

An error occurred on our side. Retry with backoff. If the error continues, contact support and give the `instance` value.

### unavailable

A service that we depend on is not available. Retry with backoff. The response has a `Retry-After` header when we know how long the outage will be.


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