Prosody

Error Codes

Error Response Format

When an error occurs, the response is returned in the following JSON format.

Voice APIs

{
  "error": {
    "code": "E4001",
    "message": "API key is required. Provide X-API-Key header.",
    "details": "optional additional info"
  }
}

AICC API

AICC returns the same common codes in a flat response for compatibility with existing clients.

{
  "error": "message or a user message in history is required",
  "code": "E4201"
}

Error Code List

Authentication

CodeHTTPDescription
E4001401API key is required. Provide X-API-Key header.
E4002401Invalid API key

Authorization

CodeHTTPDescription
E4101403Permission denied

Validation

CodeHTTPDescription
E4201400Invalid request
E4202400Text exceeds maximum length
E4203400Invalid audio
E4204413Request body exceeds the allowed size

Resource

CodeHTTPDescription
E4301404Resource not found
E4302409Resource not ready

Rate Limit

CodeHTTPDescription
E4401429Usage limit exceeded
E4402429Guest daily limit exceeded
E4403429Per-minute request or character limit exceeded

Method

CodeHTTPDescription
E4501405Method not allowed

Billing & Credits

CodeHTTPDescription
E4601402Insufficient credits to process the request

Server

CodeHTTPDescription
E5001500Internal server error
E5002503Service temporarily unavailable
E5003500Processing timeout