Commit b30e77c1 authored by Yifan Gu's avatar Yifan Gu

apiservier: avoid stacktracing for StatusUnauthorized and StatusForbidden.

parent a014c3bc
...@@ -125,6 +125,8 @@ func RecoverPanics(handler http.Handler) http.Handler { ...@@ -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,
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment