In your web application’s root directory, you have to add an attribute in the web.config
file:
<system.webServer>
<httpErrors existingResponse="PassThrough">
…
</httpErrors>
<system.webServer>
With existingResponse
set to PassThrough
, the response will be delivered if an existing response exists. There’s a nice article on HTTP Errors at www.iis.net.
There doesn’t need to be an <error>
element, especially none on status code 410 (but of course you may add one).