Skip to content

Instantly share code, notes, and snippets.

@bq1990
Created October 11, 2012 15:59
Show Gist options
  • Save bq1990/3873394 to your computer and use it in GitHub Desktop.
Save bq1990/3873394 to your computer and use it in GitHub Desktop.
Asp.Net MVC return 404
public class HomeController : Controller
{
public ActionResult Index()
{
return new HttpNotFoundResult("This doesn't exist");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment