mirror of https://github.com/status-im/consul.git
agent: use http.StatusInternalServerError instead of 500
This commit is contained in:
parent
fa121be33f
commit
bc5dc32c1d
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue