mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
apiservier: avoid stacktracing for StatusUnauthorized and StatusForbidden.
This commit is contained in:
parent
a014c3bcfe
commit
b30e77c1b3
@ -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,
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user