Error handling
Troubleshooting guidance for the Speech API
There are several types of errors that can occur when calling the API:
-
4xx HTTP codes indicate client-side issues (rate-limits, unauthorized access, etc.).
-
The body of the request fails internal validation (syntax, formatting, etc.).
-
The user-supplied parameters or context are incorrect (cannot find the specified file in the storage system).
-
One or more Speech API connectors are configured, but you have not provided a
connector_id.
In the first two errors listed above, the response will not come from the Speech API because the error occurred before processing the request.
For the third and fourth errors, the response will return a 200 OK status code and the response will contain a mix of file data and error messages. This is because the API will try to process the request and will return details when something fails.
