HttpResponseMessage Constructor (HttpStatusCode)

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

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

public HttpResponseMessage(
	HttpStatusCode statusCode
)

Parameters

statusCode
Type: System.Net.HttpStatusCode
The status code of the HTTP response.
Show: