var response = request.CreateResponse(HttpStatusCode.OK); // Sets the status code to 200
var content = new StringContent("Hello World"); var response = request.CreateResponse(HttpStatusCode.OK, content);
var response = request.CreateResponse(HttpStatusCode.OK); response.Headers.Add("X-Custom-Header", "Custom Value");This method is part of the System.Net.Http package/library.