Pre-recorded Audio — Error Handling

Exception Types

All SDK exceptions inherit from ShunyalabsError.


Exception hierarchy

ShunyalabsError ├── AuthenticationError # 401 ├── PermissionDeniedError # 403 ├── NotFoundError # 404 ├── RateLimitError # 429 ├── TranscriptionError # 422 ├── ServerError # 5xx ├── TimeoutError └── ConnectionError

Exception reference

ExceptionHTTP StatusDescription
AuthenticationError401Invalid or missing API key.
PermissionDeniedError403API key lacks required permissions.
NotFoundError404Requested resource not found.
RateLimitError429Rate limit exceeded. Back off and retry.
TranscriptionError422Invalid audio or configuration.
ServerError5xxTransient server error. Safe to retry.
TimeoutErrorRequest exceeded configured timeout.
ConnectionErrorNetwork connectivity failure.