When an API request fails, IllumiChat returns a structured error response with an HTTP status code, a human-readable message, and a machine-readable error code.
Validation Errors
Some endpoints return field-level details when validation fails:
HTTP Status Codes
Error Code Reference
Authentication & Authorization
Request Errors
Billing & Quota Errors
Rate Limit Errors
Server Errors
Handling Errors
Check the HTTP status code first
Use the code field for programmatic handling
The code field is a stable identifier you can match against, while the error message may change.
Handle 429s with exponential backoff
Log the full error response (including code and details) to make debugging easier during development.