I'm currently trying to redirect errors on my Tomcat project.
Currently I'm using this method of redirecting the errors by using httpsError in the web.config file. Here is the code and error that I got. HTTP Error 500.19, error code 0x8007000d
And I have URL Rewrite installed.
Sorry for the horrible images, I wasn't able to take a snippet. I know there are other solutions for Tomcat (for some reason it doesn't work) thus I am using web.config instead and this is the closest to success.