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

# Errors

> Example section for showcasing API endpoints

## HTTP Errors

Our API uses a consistent format for HTTP error codes:

| Code  | Type                       | Description                                                |
| ----- | :------------------------- | :--------------------------------------------------------- |
| `400` | `invalid request error`    | Invalid request.                                           |
| `401` | `authentication error`     | Invalid API key.                                           |
| `403` | `permission error`         | The API key doesn't the permission to access the resource. |
| `404` | `resource not found error` | The resource requested was not found.                      |
| `429` | `rate limit error`         | You have hit the rate limit of request.                    |
| `500` | `service error`            | There's an error on Haiper API.                            |

## API Error Codes

If the

| Code         | Description                                                        |
| :----------- | :----------------------------------------------------------------- |
| `H-10002001` | Generation content not found                                       |
| `H-10002002` | Permission denied to access the generation content                 |
| `H-10002003` | The generation does not exist or you have no permission to process |
| `VB-100011`  | You have reached the maximum concurrent tasks                      |
| `VB-100012`  | You have reached the maximum generation tasks                      |
| `VB-100017`  | The content may violate our usage policy                           |
| `VB-100020`  | This function is unavailable for API users                         |

```json theme={null}
{
    "error": {
        "message": "Message for the error",
        "code": "H-10002001", // Error code
        "details": [ // Information for Debug
            xxxxx,
            xxxxx
        ]
    }
}
```
