Merge pull request #10569 from yifan-gu/authn
apiservier: avoid stacktracing when http.StatusUnauthorized.
This commit is contained in:
@@ -125,6 +125,8 @@ func RecoverPanics(handler http.Handler) http.Handler {
|
|||||||
http.StatusTemporaryRedirect,
|
http.StatusTemporaryRedirect,
|
||||||
http.StatusConflict,
|
http.StatusConflict,
|
||||||
http.StatusNotFound,
|
http.StatusNotFound,
|
||||||
|
http.StatusUnauthorized,
|
||||||
|
http.StatusForbidden,
|
||||||
errors.StatusUnprocessableEntity,
|
errors.StatusUnprocessableEntity,
|
||||||
http.StatusSwitchingProtocols,
|
http.StatusSwitchingProtocols,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user