My question is very similar to this one, except my problem is that my frontend page is in another server, an Angular application.
Basically, what I need is to send a redirect response to my Angular frontend when user faces a 500 error, but also would like to receive admin e-mails with stack traces. This only happens when the response is a 500, not the 302 returned by the handler500 redirection.