<PackageReference Include="Microsoft.Net.Http" Version="2.2.13" />

System.Net.Http.HttpResponseMessage

Represents a HTTP response message.
public HttpContent Content { get; set; }

Gets or sets the content of a HTTP response message.

public HttpResponseHeaders Headers { get; }

Gets the collection of HTTP response headers.

public bool IsSuccessStatusCode { get; }

Gets a value that indicates if the HTTP response was successful.

public string ReasonPhrase { get; set; }

Gets or sets the reason phrase which typically is sent by servers together with the status code.

public HttpRequestMessage RequestMessage { get; set; }

Gets or sets the request message which led to this response message.

public HttpStatusCode StatusCode { get; set; }

Gets or sets the status code of the HTTP response.

public Version Version { get; set; }

Gets or sets the HTTP message version.

Initializes a new instance of the HttpResponseMessage class.

Initializes a new instance of the HttpResponseMessage class with a specific StatusCode.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by the HttpResponseMessage and optionally disposes of the managed resources.

public void Dispose()

Releases the unmanaged resources and disposes of unmanaged resources used by the HttpResponseMessage.

Throws an exception if the IsSuccessStatusCode property for the HTTP response is false.