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

# Errors

> Read failed API responses and handle errors by code.

Failed API requests return an `error` object. For example, requesting a brand that cannot be found returns HTTP `404`:

```json theme={"dark"}
{
  "error": {
    "code": "BRAND_NOT_FOUND",
    "status": 404,
    "message": "Brand not found"
  }
}
```

Use `code` to decide how your application responds. `message` explains the failure to a person, and optional `data` supplies details specific to the error. Each endpoint's response panel lists its error codes and fields.

For credit and billing failures, see [Credits and limits](https://docs.rainbrand.com/api/usage-limits.md#billing-errors).


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