Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpResponseException Constructor

 

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

NameDescription
System_CAPS_pubmethodHttpResponseException(HttpResponseMessage^)

Initializes a new instance of the HttpResponseException class.

System_CAPS_pubmethodHttpResponseException(HttpStatusCode)

Initializes a new instance of the HttpResponseException class.

Return to top

HttpResponseException Constructor (HttpResponseMessage^)

Initializes a new instance of the HttpResponseException class.

public:
HttpResponseException(
	HttpResponseMessage^ response
)

Parameters

response
Type: System.Net.Http::HttpResponseMessage^

The HTTP response to return to the client.

Return to top

HttpResponseException Constructor (HttpStatusCode)

Initializes a new instance of the HttpResponseException class.

public:
HttpResponseException(
	HttpStatusCode statusCode
)

Parameters

statusCode
Type: System.Net::HttpStatusCode

The status code of the response.

Return to top
Show: