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 Code | code | message | Description |
---|---|---|---|
400 | 40118 | Cannot use as a template | The request body could not be decoded as JSON. |
400 | 40012 400128 | Invalid querying parameter | Querying parameters or requests body is invalid. |
429 | 400123 | Exceed rate limit | Exceed the rate limit. |
401 | 40102 | Unauthorized | This request is not supported. |
400 | 40056 | Failed to generate audio | The request body does not match the schema for the expected parameters. Check the "message" property for more details. |
Streaming API
HTTP Status Code | code | message | Description |
---|---|---|---|
400 | 10001 | Session state wrong: new | The session state is incorrect; it should not be "new". |
400 | 10002 | Session state wrong: connecting | The session state is incorrect; it should not be "connecting". |
400 | 10003 | Session state wrong: connected | The session state is incorrect; it should not be "connected". |
400 | 10004 | Session state wrong: closing | The session state is incorrect; it should not be "closing". |
400 | 10005 | Session state wrong: closed | The session state is incorrect; it should not be "closed". |
404 | 10006 | Session not found | The specified session could not be found. |
429 | 10007 | Concurrent limit reached | The concurrent limit for the user's plan has been reached; upgrade your plan for formal usage. |
404 | 10012 | Avatar not found | The specified avatar could not be found. |
403 | 10013 | Avatar not allowed | The specified avatar is not allowed. |
429 | 10014 | Session full | The session is full; please try again later. |
429 | 10015 | Trial API limit reached | The trial API limit has been reached. |