Windows apps
Collapse the table of content
Expand the table of content

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:
© 2017 Microsoft