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)
| Name | Description | |
|---|---|---|
![]() | HttpResponseException(HttpResponseMessage^) | Initializes a new instance of the HttpResponseException class. |
![]() | HttpResponseException(HttpStatusCode) | Initializes a new instance of the HttpResponseException class. |
HttpResponseException Constructor (HttpResponseMessage^)
Initializes a new instance of the HttpResponseException class.
Parameters
- response
-
Type:
System.Net.Http::HttpResponseMessage^
The HTTP response to return to the client.
HttpResponseException Constructor (HttpStatusCode)
Initializes a new instance of the HttpResponseException class.
Parameters
- statusCode
-
Type:
System.Net::HttpStatusCode
The status code of the response.
Show:
