ApiException

Base class for a non-successful HTTP response from ElevenLabs.

details contains the complete structured response. kind provides a stable category for application-level handling, while statusCode and errorCode remain available for precise protocol-specific decisions.

Inheritors

Types

Link copied to clipboard

ElevenLabs rejected a malformed or invalid request with HTTP 400.

Link copied to clipboard

The credentials do not grant access to the requested resource (HTTP 403).

Link copied to clipboard

The requested ElevenLabs resource does not exist (HTTP 404).

Link copied to clipboard

The account has insufficient credits or quota (HTTP 402).

Link copied to clipboard

Too many requests were made (HTTP 429).

Link copied to clipboard

ElevenLabs failed to process the request (HTTP 5xx).

Link copied to clipboard

Authentication is missing or invalid (HTTP 401).

Link copied to clipboard

A non-success HTTP status not covered by a more specific subtype.

Link copied to clipboard

ElevenLabs rejected one or more fields (HTTP 422).

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

Complete parsed server error details.

Link copied to clipboard
Link copied to clipboard

Whether retrying the same operation may succeed without changing the request.

Link copied to clipboard
open override val kind: ElevenLabsErrorKind

Stable category intended for application-level handling.

Link copied to clipboard
expect open val message: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard