If you have cPanel with your hosting then its easy, just click Error Pages then 404.
If not, try to find out if you casn use .htaccess files with your hosting as this is the 'manual' way of doing it and you need to add:
code:
ErrorDocument 404 404.php