do you mean just a custom 404 page?
try this for apache
[httpd.apache.org...]
What I would do is find and grab the code that is checking the fields right now and move it to a file and try getting that to work with your desired layout or even better try adding your layout to the existing page/script.