I would like NGINX to trigger the execution of a script on the event of a 502 Bad Gateway. How would I go about doing this?