Create a ChatApiError.
Human-readable error message.
HTTP status code, or 0 for network and timeout failures.
Optionalcode: stringOptional machine-readable error code (e.g. "TIMEOUT", "NETWORK_ERROR").
OptionalretryAfter: numberSeconds to wait before retrying, from the Retry-After header.
Optional ReadonlycodeMachine-readable error code, when available (e.g. "TIMEOUT").
Optional ReadonlyretrySeconds to wait before retrying, parsed from the Retry-After header.
ReadonlystatusHTTP status code, or 0 for network and timeout failures.
Error thrown by ChatApiClient when a chat request ultimately fails: either after exhausting retries, or immediately for a non-retryable status.