This is a simple MVC sample of how to capture various http errors