User283571144 posted
Hi JORGEMAL,
As far as I know, the customerrors is used to provide information about custom error messages for an ASP.NET application.
This is only fired when the error is thrown.
Is there any impact while loading the website?
(Maybe the lines that contain "statusCode" are not needed because redirection is always the same URL)
The statuscode is used to set the redirect page according to differernt status code.
If you want to redirect all the error to same page, you could directy set the defaultRedirect attribute in the customErrors tag.
More details, you could refer to below article:
https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-2.0/h0hfz6fc%28v%3dvs.80%29
Best Regards,
Brando