title: Custom Selective 404 Page in MVC6
body: <p>I am looking for help we can have a custom Error404 page in ASP.NET 5 MVC6.</p>
  
  <p>The closest I have come is to use </p>
  
  <pre class="lang-c# prettyprint-override"><code>app.UseStatusCodePagesWithReExecute("/Error/{0}");
  </code></pre>
  
  <p>in the Startup.cs Configure method.</p>
  
  <p>It works fine by calling the "/Error/404" action. </p>
  
  <p>I am looking on ways on how I can send a different 404 response in the event it is a missing JPG/PNG/GIF request.</p>
  
  <p>Any suggestion in the right direction would be of great help.</p>