You can put the following file in your web directory.
Any error will be redirected to your custom error web page.
Status Code can be seen here.
More information can be found in this web page.
--
Terrence


::::::::::::::
.htaccess
::::::::::::::
ErrorDocument 404 http://www.terrence.com/error/miss.html
ErrorDocument 500 http://www.terrence.com/error/server.html