Here's an easy to use perl script for generating custom error messages. I used this several years ago before I started writing my own error pages...
http://bignosebird.com/carchive/birdtrap.shtml
It's basically a text file that if you know just a little HTML, you can customize easily. It also includes an option to e-mail you when an error orrcurs, however this option may overload your inbox.