'Entry not found in index' message and session-base

I have web application that is using session-base authentication and I get this error when a document is not found: “HTTP Web Server: Lotus Notes Exception - Entry not found in index”.

Is there any way to customize the message while using session-base so we can add links to other parts of the site?

Subject: ‘Entry not found in index’ message and session-base

Yes, you can create the following forms in your database

$$ReturnAuthenticationFailure

$$ReturnAuthorizationFailure

$$ReturnGeneralError

Download the Forum template from the below link and see how its done

http://www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/100701cc7e8253d0852568fe006d38a5?OpenDocument&Highlight=0,Template

cheers !!

Ashish