An error page informs a visitor when there is a problem accessing your site. Each type of problem has its own code.
For example, a visitor who enters a non-existent URL will see a 404 error, while an unauthorized user trying to access a restricted area of your site will see a 401 error.
The web server (Apache) automatically provides basic error pages. However, if you prefer, you can create a custom error page for any valid HTTP status code beginning in 4 or 5.