From bc5dc32c1d78c50591b1abddb5340829192a7b03 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Wed, 23 Aug 2017 16:30:14 +0200 Subject: [PATCH] agent: use http.StatusInternalServerError instead of 500 --- 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 1bb69a60b7..10b3d9c288 100644 --- a/agent/event_endpoint.go +++ b/agent/event_endpoint.go @@ -69,7 +69,7 @@ func (s *HTTPServer) EventFire(resp http.ResponseWriter, req *http.Request) (int fmt.Fprint(resp, acl.ErrPermissionDenied.Error()) return nil, nil } - resp.WriteHeader(500) + resp.WriteHeader(http.StatusInternalServerError) // 500 return nil, err }