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 }