How to return 404 Http status code from ASP.NET MVC Application?
ASP.NET MVC3 includes a new class HttpNotFoundResult in System.Web.Mvc namespace. HttpNotFoundResult: Instance of HttpNotFoundResult class indicates to client(browser) that the requested resource…