# DurableHttpResponse Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durablehttpresponse/)

## DurableHttpResponse(HttpStatusCode, Uri?, IReadOnlyDictionary&lt;string, string[]&gt;, ReadOnlyMemory&lt;byte&gt;) {#constructor-system-net-httpstatuscode-system-uri-nullable-system-collections-gen-e04a4558}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durablehttpresponse/constructors/constructor-system-net-httpstatuscode-system-uri-nullable-system-collections-gen-e04a4558/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/DurableHttpResponse.cs#L19-L23)

```csharp
public DurableHttpResponse(HttpStatusCode StatusCode, Uri? RequestUri, IReadOnlyDictionary<string, string[]> Headers, ReadOnlyMemory<byte> Content)
```

Records an HTTP response which a durable task received: its status code, headers, and content.

### Parameters

- `StatusCode` (`HttpStatusCode`): The response's status code.
- `RequestUri` (`Uri?`): The URL of the request which the response answers.
- `Headers` (`IReadOnlyDictionary<string, string[]>`): The response's headers and content headers, whose names compare case-insensitively.
- `Content` (`ReadOnlyMemory<byte>`): The response's content.
