diff --git a/pkg/apiserver/handlers.go b/pkg/apiserver/handlers.go index 6670f155aa3..fb37fbb0a4f 100644 --- a/pkg/apiserver/handlers.go +++ b/pkg/apiserver/handlers.go @@ -125,6 +125,8 @@ func RecoverPanics(handler http.Handler) http.Handler { http.StatusTemporaryRedirect, http.StatusConflict, http.StatusNotFound, + http.StatusUnauthorized, + http.StatusForbidden, errors.StatusUnprocessableEntity, http.StatusSwitchingProtocols, ),