diff --git a/services/graph/pkg/middleware/requireadmin.go b/services/graph/pkg/middleware/requireadmin.go index 15d679041c5..d4775e43792 100644 --- a/services/graph/pkg/middleware/requireadmin.go +++ b/services/graph/pkg/middleware/requireadmin.go @@ -47,7 +47,7 @@ func RequireAdmin(rm *roles.Manager, logger log.Logger) func(next http.Handler) return } - errorcode.AccessDenied.Render(w, r, http.StatusUnauthorized, "Unauthorized") + errorcode.AccessDenied.Render(w, r, http.StatusForbidden, "Forbidden") }) } }