Creates a new ChecksumMismatchError instance.
Parsed B2 error response body.
Optionaloptions: { requestId?: string }The error details including HTTP status, error code, message, and optional request ID.
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.
Thrown when the uploaded file's SHA-1 checksum does not match the expected value.
Forward-compat insurance: the B2 API currently rejects mismatched uploads with a generic
bad_requestcode, so classifyError never actually instantiates this class today. It's part of the public API so consumers can pre-writeinstanceofchecks; when B2 documents a dedicated checksum-mismatch code, theclassifyErrorswitch gets a matching case and existing consumer code starts catching the typed error without any changes on their side.Until then, expect
BadRequestErrorfor SHA-1 mismatch scenarios.