public HttpResponseMessage getAll(HttpRequestMessage request) { return(CreateHttpResponse(request, () => { var model = ErrorService.Read(); var response = request.CreateResponse(HttpStatusCode.OK, model); return response; })); }