Yes, stu9820's post should help you.
But If you still want to do it in your way.
Within "ErrorGeneral.asp" you got to write something like
If Cint(ErrType)=404 then
ElseIf Cint(ErrType)=501 then
And put the content within 404.asp, 501.asp, etc...
404.asp '''''Should be coded to show what you wanted on that page.
Sorry, but we couldn't find the page you were looking for. If the problem presists, contact the <email link>administrator</a>
Error 404: The page could not be found.
Hope that helps.
Strive for Perfection