Allows JVM handling for CustomErrors RedirectMode.ResponseRewrite