apiservier: avoid stacktracing for StatusUnauthorized and StatusForbidden.

This commit is contained in:
Yifan Gu 2015-06-30 15:19:41 -07:00
parent a014c3bcfe
commit b30e77c1b3

View File

@ -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,
),