Creates a new B2Error instance.
Parsed B2 error response body.
Optionaloptions: { requestId?: string; retryAfter?: number }Optional retry and request metadata from response headers.
ReadonlycodeB2 error code identifying the error type (e.g. expired_auth_token).
Optional ReadonlyrequestB2 request ID from the X-Bz-Request-Id response header, if present.
ReadonlyretryableWhether this error is transient and the request can be retried.
Optional ReadonlyretryRetry delay in seconds from the Retry-After response header, if present.
ReadonlystatusHTTP status code returned by the B2 API.
Base error class for all B2 API errors. Contains the HTTP status, B2 error code, and retry metadata from the response.