How to change the default 404 Page Error in any hosting plan

Many hosting companies such as hostgator have their own default 404 error page. If you want to have your own version of 404 error page, you can do the following.