HttpResponseException Constructor (HttpStatusCode)
Initializes a new instance of the HttpResponseException class.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
statusCode As HttpStatusCode _
)
'Usage
Dim statusCode As HttpStatusCode
Dim instance As New HttpResponseException(statusCode)
public HttpResponseException(
HttpStatusCode statusCode
)
public:
HttpResponseException(
HttpStatusCode statusCode
)
new :
statusCode:HttpStatusCode -> HttpResponseException
public function HttpResponseException(
statusCode : HttpStatusCode
)
Parameters
- statusCode
Type: System.Net.HttpStatusCode
The status code of the response.
Remarks
This version of the constructor creates a new HTTP response with the specified status code.