Error Handling
Error code quick reference and handling suggestions.
6. Error Handling
1. Status Code Quick Reference
All API responses use HTTP 200. Success and failure are distinguished by the code field in the response body:
code = 0: request succeededcode != 0: request failed- Other non-zero codes not listed below: check the
messagefield or contact technical support
| Status code | Description | Suggested action |
|---|---|---|
| 0 | Request succeeded | - |
| 21007 | Invalid API key | Check API key configuration |
| 25002 | Resource not found | Verify whether episodeId is correct |
| 25008 | Invalid episode state | Ensure text generation is completed (contentStatus = text-success) |
| 26004 | Insufficient credits | Check balance and recharge |
| 29003 | Invalid parameters | Validate request payload |
| 29998 | Requests are too frequent | Implement backoff retry |
| 91001 | Input content is too short | Increase input content length |
| 91002 | Input content violates policy | Check content compliance |
| 91003-91007 | Content generation errors | Check detailed error message |