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)

public protected:
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: