agent: use http.StatusInternalServerError instead of 500

This commit is contained in:
Frank Schroeder 2017-08-23 16:30:14 +02:00 committed by Frank Schröder
parent fa121be33f
commit bc5dc32c1d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}