I know I can have custom error pages for non existent controllers or wrong routing but how can I show custom error pages if an user tries to download a file that does not exist inside some directory? I can't make it work at all. It's still showing default error page.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Carriage Return (ASCII chr 13) is missing from tex
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
This blog post walks you through handling 404 errors in ASP.Net Web API: http://weblogs.asp.net/imranbaloch/handling-http-404-error-in-asp-net-web-api