title: IIS 10 returning 200 for 404 page
body: <p>I have the following server configuration on my staging and production server for a custom 404 page, and I am performing some operations based on 404 URLs on my custom 404 page. And getting status as 404 for a non-existing page is necessary for the operation I am performing on my custom 404 page.</p>
  
  <pre><code>&lt;httpErrors&gt;
      &lt;remove statusCode="403" subStatusCode="-1" /&gt;
      &lt;remove statusCode="404" subStatusCode="-1" /&gt;
      &lt;error statusCode="404" prefixLanguageFilePath="" path="/404.php" responseMode="ExecuteURL" /&gt;
  &lt;/httpErrors&gt;
  </code></pre>
  
  <p>With the above configuration on the production server, I am getting 200 status code for a 404 page but the same is working fine on my stagging server. The only difference between my stagging and production server is that staging is on IIS 8.5 and production is on IIS 10. I m not able to get what missing to achieve the same on the IIS10 production server.</p>