fix: s3 return BadDigest (#6714)

* fix: s3 return BadDigest

* adjust error message checking

---------

Co-authored-by: chrislu <chris.lu@gmail.com>
This commit is contained in:
Konstantin Lebedev
2025-07-07 02:18:57 +05:00
committed by GitHub
parent 798f797158
commit fd4154cfed
3 changed files with 13 additions and 4 deletions

View File

@@ -112,6 +112,13 @@ const (
ErrNoSuchTagSet
)
// Error message constants for checksum validation
const (
ErrMsgPayloadChecksumMismatch = "payload checksum does not match"
ErrMsgChunkSignatureMismatch = "chunk signature does not match"
ErrMsgChecksumAlgorithmMismatch = "checksum algorithm mismatch"
)
// error code to APIError structure, these fields carry respective
// descriptions for all the error responses.
var errorCodeResponse = map[ErrorCode]APIError{