The Char API returns structured error responses with conventional HTTP status codes.Documentation Index
Fetch the complete documentation index at: https://docs.usechar.com/llms.txt
Use this file to discover all available pages before exploring further.
Error Response Format
codeis the ORPC error code (HTTP-aligned)data.codeis a machine-readable error identifierdatamay include additional fields depending on the error type
Common Error Codes
| HTTP | ORPC Code | data.code | Notes |
|---|---|---|---|
| 400 | BAD_REQUEST | VALIDATION_ERROR | Input validation failed |
| 401 | UNAUTHORIZED | AUTH_REQUIRED | Missing or invalid JWT |
| 403 | FORBIDDEN | ACCESS_DENIED | Permission denied |
| 403 | ORG_CONTEXT_REQUIRED | ORG_CONTEXT_REQUIRED | Org context required |
| 403 | PAYMENT_REQUIRED | PAYMENT_REQUIRED | Subscription required |
| 404 | NOT_FOUND | RESOURCE_NOT_FOUND | Resource missing |
| 409 | CONFLICT | DUPLICATE_RESOURCE | Resource already exists |
| 500 | INTERNAL_SERVER_ERROR | INTERNAL_ERROR | Server error |
Handling Errors
- JavaScript
- Python

