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:
committed by
GitHub
parent
798f797158
commit
fd4154cfed
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user