Error Codes

All Chuizi.AI API errors follow the OpenAI-compatible error response format. Every error response includes a structured JSON body regardless of which protocol you use (/v1, /anthropic, or /gemini).

Error Response Format

config.json
json
{
  "error": {
    "message": "Human-readable description of what went wrong",
    "type": "error_category",
    "code": "specific_error_code"
  }
}
FieldTypeDescription
messagestringA human-readable explanation of the error. Safe to display to end users.
typestringThe category of error. Use this for programmatic error handling.
codestringA machine-readable error code. More specific than type.

Next Steps