ApiController::StatusCode Method (HttpStatusCode)
Creates a T:System.Web.Http.StatusCodeResult with the specified status code.
Assembly: System.Web.Http (in System.Web.Http.dll)
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.
Show: