How to customize the Page Not Found (404) page
To customize the 404 error page served by Crowd, in order to better fit the design of your site.
Navigate to the following path on Crowd Server.
Add the following snippet at the bottom of the page, but before the </web-app> tag.
<error-page> <error-code>404</error-code> <location>/404.html</location> </error-page>
Create a new file
<crowd-install>/crowd-webapp/. We can use any HTML script like following to modify the custom page.
<!DOCTYPE html> <html> <body> <p>Modified 404 page</p> </body> </html>
Even though the filename needs to be 404.html the content on it can be whatever you would like to place in there. Thus, if you wanted to have the page be blank with no content or redirect to something else, you could set up the document accordingly to render. If you wanted to return a specific HTTP error code, this is not possible in the platform to route 404 pages to return HTTP 500 requests.