Add 500 Webhook middleware

The middleware sends a POST request to a Webhook URL when an error occurs.