Browse Source

agent: use http.StatusInternalServerError instead of 500

pull/3416/head
Frank Schroeder 7 years ago committed by Frank Schröder
parent
commit
bc5dc32c1d
  1. 2
      agent/event_endpoint.go

2
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()) fmt.Fprint(resp, acl.ErrPermissionDenied.Error())
return nil, nil return nil, nil
} }
resp.WriteHeader(500) resp.WriteHeader(http.StatusInternalServerError) // 500
return nil, err return nil, err
} }

Loading…
Cancel
Save