> For the complete documentation index, see [llms.txt](https://docs.bbx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bbx.com/bbx-dex-public-api/error-handling.md).

# Error handling

Invalid parameters or unavailable resources may return a business-error object.

The HTTP status code may remain `200`, while the business error is identified by the `rc` and `mc` fields.

### Error response structure

```json
{
  "rc": 1,
  "mc": "invalid_symbol",
  "ma": [],
  "result": null
}
```

### Error codes

| Error code       | Description                                                                |
| ---------------- | -------------------------------------------------------------------------- |
| `invalid_symbol` | The market does not exist, has been delisted, or is not publicly available |
| `invalid_depth`  | The `depth` value is not supported                                         |
| `invalid_level`  | The `level` value is not `1`, `2`, or `3`                                  |

For full-market list endpoints, a market with temporarily unavailable data may be skipped while the remaining markets continue to be returned.
