summaryrefslogtreecommitdiffstats
path: root/routers/routes/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/routes/web.go')
-rw-r--r--routers/routes/web.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/routes/web.go b/routers/routes/web.go
index e59609d831..5b382ecccb 100644
--- a/routers/routes/web.go
+++ b/routers/routes/web.go
@@ -313,21 +313,21 @@ func RegisterRoutes(m *web.Route) {
openIDSignInEnabled := func(ctx *context.Context) {
if !setting.Service.EnableOpenIDSignIn {
- ctx.Error(403)
+ ctx.Error(http.StatusForbidden)
return
}
}
openIDSignUpEnabled := func(ctx *context.Context) {
if !setting.Service.EnableOpenIDSignUp {
- ctx.Error(403)
+ ctx.Error(http.StatusForbidden)
return
}
}
reqMilestonesDashboardPageEnabled := func(ctx *context.Context) {
if !setting.Service.ShowMilestonesDashboardPage {
- ctx.Error(403)
+ ctx.Error(http.StatusForbidden)
return
}
}
@@ -335,7 +335,7 @@ func RegisterRoutes(m *web.Route) {
// webhooksEnabled requires webhooks to be enabled by admin.
webhooksEnabled := func(ctx *context.Context) {
if setting.DisableWebhooks {
- ctx.Error(403)
+ ctx.Error(http.StatusForbidden)
return
}
}