title: How to redirect all httpErrors to custom url?
body: <p>These are the codes in web.config:</p>
  
  <pre><code>&lt;system.web&gt;
    &lt;customErrors mode="Off" &gt;
    &lt;/customErrors&gt;
  &lt;/system.web&gt;
  &lt;system.webServer&gt;
    &lt;httpErrors errorMode="Custom" existingResponse="Replace"&gt;
      &lt;clear /&gt;
      &lt;error statusCode="404" prefixLanguageFilePath="" path="/ResourceNotFound" responseMode="ExecuteURL" /&gt;
      &lt;error statusCode="500" prefixLanguageFilePath="" path="/ResourceNotFound" responseMode="ExecuteURL" /&gt;
      &lt;/httpErrors&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>The above settings will redirect httpError of 404 and 500 only.</p>
  
  <p>But instead of manually add all the error code of 400, 401, 403....etc..etc...</p>
  
  <p>Can we just set it redirect all errors to the same url without typing all the error code?</p>
  
  <pre><code>&lt;error statusCode="400" .....
  &lt;error statusCode="401" .....
  &lt;error statusCode="403" .....
  &lt;error statusCode="404" .....
  &lt;error statusCode="xxx" ....
  </code></pre>