Export (0) Print
Expand All

HttpResponseException Constructor (HttpStatusCode)

Initializes a new instance of the HttpResponseException class.

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

public HttpResponseException(
	HttpStatusCode statusCode
)

Parameters

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

This version of the constructor creates a new HTTP response with the specified status code.

Show:
© 2014 Microsoft