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

# Error Codes

Common platform error codes for OpenAI-compatible endpoints are listed below. Upstream providers may return additional codes, so clients should also handle unknown codes. The Anthropic Messages endpoint returns errors in Anthropic-compatible format.

```json theme={null}
{
  "error": {
    "message": "Insufficient balance",
    "type": "invalid_request_error",
    "code": "personal_balance_insufficient"
  }
}
```

| Code | Category | Description |
| - | - | - |
| `invalid_api_key` | Request | The API key is missing or invalid |
| `invalid_json` | Request | Request body is not valid JSON |
| `invalid_request` | Request | Request parameter or field validation failed |
| `personal_balance_insufficient` | Billing | Personal account balance is insufficient; top up before retrying |
| `guardrail_model_not_allowed` | Security policy | The requested model is not allowed by the current policy |
| `guardrail_budget_exceeded` | Security policy | The security policy budget limit has been exceeded |
| `rate_limit_exceeded` | Rate limit | Rate or concurrency limit exceeded |
| `route_unavailable` | Routing | No routing target is currently available |
| `no_channel` | Routing | No available channel matches the current request |
| `upstream_error` | Upstream | The upstream request failed; retry later |


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