IHttpActionResult Shortcut Methods

The ApiController in Web API 2 has action methods that return an IHttpActionResult interface. There ApiController class has shortcut methods for creating certain results. From within an Action Method, we can call any other following methods that are associated with certain HTTP status codes:

See also

http://msdn.microsoft.com/en-us/library/system.web.http.apicontroller_methods%28v=vs.118%29.aspx

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html