ElevenLabsErrorDetails

data class ElevenLabsErrorDetails(val statusCode: Int?, val message: String, val requestId: String? = null, val responseBody: String? = null, val errorCode: String? = null, val validationErrors: List<ElevenLabsValidationError> = emptyList())(source)

Structured details associated with a failed ElevenLabs operation.

Constructors

Link copied to clipboard
constructor(statusCode: Int?, message: String, requestId: String? = null, responseBody: String? = null, errorCode: String? = null, validationErrors: List<ElevenLabsValidationError> = emptyList())

Properties

Link copied to clipboard

Machine-readable code reported by ElevenLabs, when present.

Link copied to clipboard

Human-readable error suitable for logs or a fallback UI message.

Link copied to clipboard

ElevenLabs request identifier, useful when contacting support.

Link copied to clipboard

Diagnostic response body, capped by the SDK and potentially containing sensitive information.

Link copied to clipboard

HTTP status code, or null when no HTTP response was received.

Link copied to clipboard

Field-level failures from ElevenLabs' detail array.