Server Side Includes
One of the ways that you can handle server errors is to use a CGI script (Server-Side Include) running on your webserver. To do this you will have to have the CGI module activated and available to you.
SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing HTML page, without having to serve the entire page via a CGI program, or other dynamic technology.