ASP.NET MVC: How to handle 400 bad request error when url end with %
I am trying to handle all HTTP errors to my custom error pages, but I find that when there is a % at the end of url, i cannot use config setting or code to handle it,
for example: http://localhost/abc%
the response is:
Bad Request – Invalid URL
HTTP Error 400. The request URL is invalid.