From 1a557ee9e9b6d376711a13a0e8fa5fdedcb88cf1 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Wed, 23 Aug 2017 16:28:54 +0200 Subject: [PATCH] agent: use http.StatusForbidden instead of 403 --- agent/event_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/event_endpoint.go b/agent/event_endpoint.go index 6adf331892..15f0d7a053 100644 --- a/agent/event_endpoint.go +++ b/agent/event_endpoint.go @@ -65,7 +65,7 @@ func (s *HTTPServer) EventFire(resp http.ResponseWriter, req *http.Request) (int // Try to fire the event if err := s.agent.UserEvent(dc, token, event); err != nil { if acl.IsErrPermissionDenied(err) { - resp.WriteHeader(403) + resp.WriteHeader(http.StatusForbidden) // 403 fmt.Fprint(resp, acl.ErrPermissionDenied.Error()) return nil, nil }