mirror of
https://github.com/versity/versitygw.git
synced 2026-09-24 08:54:47 +00:00
fix: changes AuthorizationHeaderMalformed error status to 400
Fixes #1706 Changes the `AuthorizationHeaderMalformed` error http status code from `403` to `400`.
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ func malformedAuthError(format string, args ...any) APIError {
|
||||
return APIError{
|
||||
Code: "AuthorizationHeaderMalformed",
|
||||
Description: fmt.Sprintf("The authorization header is malformed; %s", fmt.Sprintf(format, args...)),
|
||||
HTTPStatusCode: http.StatusForbidden,
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user