A static HTML page can contain a simple dependency free script to set the top bar to a 404 error. This page can be found in 'public/404.html'.