mirror of
https://github.com/versity/versitygw.git
synced 2026-09-04 07:06:59 +00:00
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:
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user