title: Blazor: Implementing 404 not found page
body: <p>I'd like to implement a page internal to my application that appears when the blazor router is unable to find a matching route. Currently, all requests are routing to <code>index.html</code> so I'm unable to handle errors through iis as I may normally. If I enter an invalid route, I will be shown a blank page (which is actually <code>index.html</code>) and receive a console error: </p>
  
  <p><code>'Router' cannot find any component with a route for '/some/Nonexistent/Route'.</code></p>
  
  <p>It seems like I should be able to handle this since the blazor router is able to recognize that there is no route defined which matches the requested route however I've so far been unable to find any documentation on this.</p>
  
  <p>How can I implement this? Is there a way to hook into the blazor router and direct all non found routes to a predefined error route?</p>
  
  <p>I see <a href="https://github.com/aspnet/AspNetCore/issues/5489" rel="noreferrer">https://github.com/aspnet/AspNetCore/issues/5489</a> has an issue listed for a 404 handler however I'm not sure if that is for something more robust and production ready than what I'm looking to do</p>