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)

new : 
        statusCode:HttpStatusCode -> HttpResponseMessage

Parameters

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