Web Agent Timeout - custom message

How can I change the default message "HTTP Web Server: Lotus Notes Exception - Agent did not complete within the time limit. "

I know I can set the timeout to something longer but I would rather it run and timeout if it takes longer than the limit and then just display a more friendly error message or at least redirect to the page of my choice.

Subject: Web Agent Timeout - custom message

You can create a $$ReturnGeneralError form and check the typ of error you get in the messagestring field and compute any message you like.