0
As I redirect the user to the main page of the application, in case it tries to access a url invalid. For example, www.teste/teste.html
, in case the page does not exist then system directs the user to www.teste/index.html
, in case I’m using Asp.net MVC5.
<customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="~/Views/Home/Index">
<error statusCode="500" redirect="~/Erro" />
</customErrors>
When I access a non-existent page it returns the message:
400 bad request
Could someone help me with that doubt?
See if that helps you. https://answall.com/questions/47641/asp-net-mvc-bad-request
– Voltz