diff --git a/api/handler/head.go b/api/handler/head.go index fdbb00b..c805ad9 100644 --- a/api/handler/head.go +++ b/api/handler/head.go @@ -109,7 +109,7 @@ func (h *handler) HeadBucketHandler(w http.ResponseWriter, r *http.Request) { code := http.StatusBadRequest if st, ok := status.FromError(err); ok && st != nil { - switch st.Code() { + switch st.Code() { //nolint:exhaustive // we have default value set above case codes.NotFound: code = http.StatusNotFound case codes.PermissionDenied: