Skip to content

Status Codes

Oscar Hudson edited this page Sep 6, 2022 · 2 revisions

API Status Codes

When making a request to the API, you may notice a "success" message, or a big error. Usually, the big errors are because there are error codes that aren't handled yet. This page acts as documentation to these error codes.

status_code: 0

This is the success status code. If you receive this, your audio file should be fine.

status_code: 1

Status Code 1 is caused by an incorrect aid value in the request parameters. The set value should be 1233.

There is another case with status code 1, where a parameter isn't passed, either text_speaker or req_text is missing.

status_code: 2

The third status code shows when the text is too long. The character limit that we are aware of is 200, however this is subject to change.

status_code: 3

Status Code 3 is Unknown.

status_code: 4

When an invalid text_speaker is passed, you will receive this status code. Make sure to grab the right one from the Wiki.