---
title: "Errors"
url: "https://docs.sixfab.com/api/connect/errors/"
last_updated: "2026-11-26"
---

# Errors

The API uses conventional HTTP status codes. Codes in the `2xx` range mean the request worked. Codes in the `4xx` range mean it failed with the information you sent, for example an unknown asset or a missing parameter. Codes in the `5xx` range mean a service the call depends on failed.

Every error has a human-readable `message`. Each operation lists the codes it can return.

### Attributes

- `message` (string): What went wrong, in a sentence you can log or show.

- `detail` (array of objects): Only on `422` responses: one entry for each value that failed validation.

  - `loc` (array of strings): Where the value is, for example `["body", "name"]`.
  - `msg` (string): What is wrong with the value.
  - `type` (string): Error type, for example `string_too_short`.

- `err_code` (string): On `403` responses for a suspended asset, `asset_suspended`; on `503` responses, `network_error`.

HTTP status code summary

|  |  |  |
| --- | --- | --- |
| 200 | OK | Everything worked as expected. |
| 400 | Bad Request | The request was unacceptable, often because a required parameter is missing. |
| 401 | Unauthorized | The API key is unknown. |
| 402 | Request Failed | The parameters were valid but the request failed. |
| 403 | Forbidden | No API key was sent, or the request isn’t allowed, for example on a suspended asset. |
| 404 | Not Found | The asset or data doesn’t exist. |
| 409 | Conflict | The request conflicts with another request. |
| 422 | Validation Error | A parameter is missing or has the wrong type. Read `detail`. |
| 429 | Too Many Requests | Too many requests hit the API too quickly. Retry with an exponential backoff. |
| 500 | Internal Server Error | The server ran into a situation it can’t handle. |
| 502 | Bad Gateway | The API got an invalid response from what it depends on. |
| 503 | Service Unavailable | A service the call depends on is down. Try again later. |

**Error · 400**

```json
{
  "message": "[MESSAGE]"
}
```

**Error · 403**

```json
{
  "message": "[MESSAGE]",
  "err_code": "asset_suspended"
}
```

**Error · 404**

```json
{
  "message": "[MESSAGE]"
}
```

**Error · 422**

```json
{
  "detail": [
    {
      "loc": ["[LOC]"],
      "msg": "[MSG]",
      "type": "[TYPE]"
    }
  ]
}
```
