From b30e77c1b3ebbb031c0256e552482926d8f19949 Mon Sep 17 00:00:00 2001 From: Yifan Gu Date: Tue, 30 Jun 2015 15:19:41 -0700 Subject: [PATCH] apiservier: avoid stacktracing for StatusUnauthorized and StatusForbidden. --- pkg/apiserver/handlers.go | 2 ++ 1 file changed, 2 insertions(+) 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, ),