How can i add a new status code for 400 error.
I added in the iis Error Pages -> Add -> 400-> File Path -> D:\Source Code\abc\abc\error.htm
But still ' HTTP Error 400. The request URL is invalid' is showing.
You cannot customize the following HTTP error messages: 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505.
Refer Configuring HTTP Error Responses for more details.
So it's not possible with IIS.
You can refer the below link as an alternative.
© COPYRIGHT 2023 ASPSnippets.com ALL RIGHTS RESERVED.