Skip to content

Xiaoku error codes ​

Public Xiaoku endpoints share this error model. Use it when debugging and classifying failures.

HTTP statusResponseMeaning
400BadRequestInvalid request parameters
401UnauthorizedAuthentication failed
429RateLimitRate limit exceeded
500InternalErrorInternal server error

Error body ​

json
{
  "code": 40001,
  "message": "invalid request",
  "request_id": "req_xxx"
}
  • code: application error code
  • message: error description
  • request_id: request trace ID for logs