ASP.NET MVC 3: Using HttpStatusCodeResult

added by gpeipman
7/28/2010 3:51:29 AM

1 Kicks, 146 Views

ASP.NET MVC 3 also introduces new action result HttpStatusCodeResult. This action result provides you way how to specify HTTP status code and status description in your controllers. In this posting I will show you how to use HttpStatusCodeResult in your real-world applications providing meaningful status code for products that were online once but are now gone and we don’t expect them to be back in future.