title: React returns a 200 for a Page Not Found?
body: <p>I was looking at the <code>react-router</code> capability. To create a "Page Not Found" you use a <code>&lt;Switch&gt;</code> with the last entry set to a catch all like so:</p>
  
  <pre><code>&lt;Switch&gt;
    &lt;Route path="/" component={Home}/&gt;
    [...snip...]
    &lt;Route component={PageNotFound}/&gt;
  &lt;/Switch&gt;
  </code></pre>
  
  <p>However, that means the server just returned a <code>200 OK</code> response to the client. In terms of SEO or just plain "let's follow the HTTP rules", I think it's broken.</p>
  
  <p>Is that the norm on one page type of websites? Returning a <a href="https://en.wikipedia.org/wiki/HTTP_404#Soft_404_errors" rel="nofollow noreferrer"><em>soft 404</em></a>?</p>
  
  <p>Note that this would be if a user follows an external link from another website to a page on my React App website, page that was removed or never existed. While clicking links in the App., it doesn't matter. I do not see a way to have React return a 404 when the path is <em>wrong</em>. Am I correct?</p>