fishaudio.exceptions
Custom exceptions for the Fish Audio SDK.FishAudioError Objects
APIError Objects
status- HTTP status codemessage- Error message from the response, or the HTTP reason phrase for a refused WebSocket handshakebody- Response body, if it was readheaders- Headers of the error response (empty if there are none)
AuthenticationError Objects
PermissionError Objects
NotFoundError Objects
RateLimitError Objects
ServerError Objects
WebSocketError Objects
ASRRealtimeError Objects
message- A short English description, for humanserror_type- Machine-readable error type from the server’s error event (e.g., “invalid_config”, “idle_timeout”). None if the connection closed without onecode- HTTP-style status from the server’s error event. None if not sentrequest_id- Identifier of the request; quote it when reporting a problemclose_code- WebSocket close code (e.g., 4400, 4408, 1012). None if the error was raised before the connection closed

