How to set the default error page?
Changing the 404 behaviour
If the user calls a not existing page the container (e.g. tomcat) shows a 404 page and returns the error code 404. You can configure what is happening in the case of a 404 in the web.xml configuration file of the web container.
<error-page>
<error-code>404</error-code>
<location>/home.html</location>
</error-page>