fix: change ErrMissingDateHeader http status code to 403

Fixes #1934

The HTTP status code for `ErrMissingDateHeader` was `400`. Now it's changed to correct `403`.
This commit is contained in:
niksis02
2026-04-01 16:21:07 +04:00
parent e0209ebab4
commit 90e240d23f
+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",