aboutsummaryrefslogtreecommitdiffstats
path: root/routers/common/middleware.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/common/middleware.go')
-rw-r--r--routers/common/middleware.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/common/middleware.go b/routers/common/middleware.go
index 880700969a..591c4cf30e 100644
--- a/routers/common/middleware.go
+++ b/routers/common/middleware.go
@@ -70,9 +70,9 @@ func Middlewares() []func(http.Handler) http.Handler {
combinedErr := fmt.Sprintf("PANIC: %v\n%s", err, log.Stack(2))
log.Error("%v", combinedErr)
if setting.IsProd {
- http.Error(resp, http.StatusText(500), 500)
+ http.Error(resp, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
} else {
- http.Error(resp, combinedErr, 500)
+ http.Error(resp, combinedErr, http.StatusInternalServerError)
}
}
}()