How to specify your own ErrorDocuments using .htaccess file?
If you do not have custom files for handling error conditions and error codes like 404 ,500 and 401 etc ,the user experience would not be great. No one prefer to see the “404 Not Found” on their browser.The website developer should handle these scenarios.
You can do this by specifying the custom error document in your server web server configuration files.