title: MVC 6 404 Not Found
body: <p>Instead of getting a HTTP 404 response, I'd like to have a generic 404 Not Found page (HTTP 200).  I know you can set that up in MVC 5 with </p>
  
  <pre><code>&lt;customErrors mode="On"&gt;
    &lt;error statusCode="404" redirect="~/Error/NotFound" /&gt;
  &lt;/customErrors&gt;
  </code></pre>
  
  <p>But I can't seem to figure out how to do this in MVC 6.  I'm guessing it should be in either the UseMvc routing table, or a custom middleware.</p>