s3api: map truncated SigV4 headers to the error for the missing field

AWS answers an Authorization header missing Credential= with
InvalidArgument and one missing or malformed Signature= with
AuthorizationHeaderMalformed, instead of a generic MissingFields.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Chris LuandDevin committed 2026-10-06 09:16:29 -07:00
1 parent eb744e71bd
commit e068bd2167
3 files changed
+43 -5

No files matched your search

+1 -1
View File
@@ -486,7 +486,7 @@ var errorCodeResponse = map[ErrorCode]APIError{
HTTPStatusCode: http.StatusBadRequest,
},
ErrMissingSignTag: {
Code: "AccessDenied",
Code: "AuthorizationHeaderMalformed",
Description: "Signature header missing Signature field.",
HTTPStatusCode: http.StatusBadRequest,
},