Serving 404s instead of errors - solved :)

Below comes from email that my customer send to me.

 

I’ve created a special MVC Route Handler that simply serves a 404 error. 

In the Global.asax, we can now add what we would like to serve a 404. 

Like so

 

  

This will stop the errors being sent to us, while providing the user with the correct response for missing items.

The route handler simply goes

 

 

posted on 2013-03-27 11:17  cw_volcano  阅读(118)  评论(0编辑  收藏  举报