There is no script for 404 pages.
Once you have an HTML file that says Page Not Found or whatever you want, open a file called .htaccess
and insert the following code into it:
Code:
ErrorDocument 404 /link/to/file.html
Your Page can also be in a different format like PHP.