public HttpResponseMessage CreateResponseMessage(HttpRequestMessage request) { HttpResponseMessage httpResponseMessage = ResponseCreator.CreateResponseFor(request, StatusCode); if (Headers != null && Headers.Count > 0) { Headers.ToList().ForEach(header => httpResponseMessage.Headers.Add(header.Key, header.Value)); } httpResponseMessage.Headers.Location = Location; return(httpResponseMessage); }