Merge pull request #2003 from versity/sis/missing-date-header-err-status-code

fix: change ErrMissingDateHeader http status code to 403
This commit is contained in:
Ben McClelland
2026-04-01 20:56:37 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -527,7 +527,7 @@ var errorCodeResponse = map[ErrorCode]APIError{
ErrMissingDateHeader: {
Code: "AccessDenied",
Description: "AWS authentication requires a valid Date or x-amz-date header.",
HTTPStatusCode: http.StatusBadRequest,
HTTPStatusCode: http.StatusForbidden,
},
ErrGetUploadsWithKey: {
Code: "InvalidRequest",
+1 -1
View File
@@ -232,7 +232,7 @@ export RUN_USERS=true
}
@test "REST - ListBuckets - error Content-Type is application/xml" {
run send_rest_go_command_check_header_key_and_value "400" "Content-Type" "application/xml" "-method" "GET" "-omitDate"
run send_rest_go_command_check_header_key_and_value "403" "Content-Type" "application/xml" "-method" "GET" "-omitDate"
assert_success
}