We are using TDI Http Server Connector as the web server for a very small web application.
After receiving the HTTP request, we connect to a DB as part of the data flow and send the HTTP response with the data received from the SQL query. This all works fine.
Now we want to add some generic error handling that if there is any exception within the data flow, we want to send a generic message saying the request could not successfully processed. Typically we do this in the default_on_error hooks for other connectors and it works fine.
However we see that none of the hooks of HTTP server connector are catching errors or exceptions, before sending the response.
Any ideas, how this can be achieved ? Please note that using hooks is our preferred approach than adding try - catch blocks in the old code. We want to void touching the old code as much as possible.