HTTP response codes from the API are used to indicate general classes of success and error. Error responses contain more detail about the error in the response body, in the "code" and "message" properties.

HTTP Status CodecodemessageDescription
40040118Cannot use as a templateThe request body could not be decoded as JSON.
40040012
400128
Invalid querying parameterQuerying parameters or requests body is invalid.
429400123Exceed rate limitExceed the rate limit.
40140102UnauthorizedThis request is not supported.
40040056Failed to generate audioThe request body does not match the schema for the expected parameters. Check the "message" property for more details.

Streaming API

HTTP Status CodecodemessageDescription
40010001Session state wrong: newThe session state is incorrect; it should not be "new".
40010002Session state wrong: connectingThe session state is incorrect; it should not be "connecting".
40010003Session state wrong: connectedThe session state is incorrect; it should not be "connected".
40010004Session state wrong: closingThe session state is incorrect; it should not be "closing".
40010005Session state wrong: closedThe session state is incorrect; it should not be "closed".
40410006Session not foundThe specified session could not be found.
42910007Concurrent limit reachedThe concurrent limit for the user's plan has been reached; upgrade your plan for formal usage.
40410012Avatar not foundThe specified avatar could not be found.
40310013Avatar not allowedThe specified avatar is not allowed.
42910014Session fullThe session is full; please try again later.
42910015Trial API limit reachedThe trial API limit has been reached.