ListenHub OpenAPI

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 succeeded
  • code != 0: request failed
  • Other non-zero codes not listed below: check the message field or contact technical support
Status codeDescriptionSuggested action
0Request succeeded-
21007Invalid API keyCheck API key configuration
25002Resource not foundVerify whether episodeId is correct
25008Invalid episode stateEnsure text generation is completed (contentStatus = text-success)
26004Insufficient creditsCheck balance and recharge
29003Invalid parametersValidate request payload
29998Requests are too frequentImplement backoff retry
91001Input content is too shortIncrease input content length
91002Input content violates policyCheck content compliance
91003-91007Content generation errorsCheck detailed error message

On this page