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.

ApiController.StatusCode Method (HttpStatusCode)

 

Creates a T:System.Web.Http.StatusCodeResult with the specified status code.

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

protected internal virtual StatusCodeResult StatusCode(
	HttpStatusCode status
)

Parameters

status
Type: System.Net.HttpStatusCode

The HTTP status code for the response message

Return Value

Type: System.Web.Http.Results.StatusCodeResult

A T:System.Web.Http.StatusCodeResult with the specified status code.

Return to top
Show: