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

# Errors

> What an error response looks like and what each status means.

An error the API returns is a JSON object with a `message` and a `code`. Handle errors by HTTP status.

```json theme={null}
{
  "message": "Unauthorized",
  "code": "UNAUTHORIZED"
}
```

| Status | Meaning                                                                                                                                                 |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `400`  | A parameter is invalid, with each problem listed in an `issues` array. A paging cursor that was refused also returns `400`, and the `message` says why. |
| `401`  | The key is missing, unknown, revoked, or does not hold the claim the route needs.                                                                       |
| `404`  | The route does not exist, or the record does not exist for your business or cannot be read on its own, such as a bank fee.                              |
| `405`  | The request used a method other than `GET` or `HEAD`.                                                                                                   |
| `500`  | Something failed on our side. Retry.                                                                                                                    |
