httpErrors conditional on errorMode?
<p>How can I make existingResponse conditional on the errorMode?</p>

<p>For example, If errorMode="DetailedLocalOnly" then I want external messages to be "replaced" by my custom definitions i.e. a Friendly error page, but I want local messages to be "passedThrough". So, for a 500 error I see the YSOD locally, not the IIS 500 error page. Externally I would see my Friendly error page.</p>

<p>Is this possible?</p>

<p>my current configuration:</p>

<pre><code>&lt;httpErrors existingResponse="Replace" errorMode="DetailedLocalOnly"&gt;
    &lt;remove statusCode="500" /&gt;
    &lt;error statusCode="500" path="/myCustomErrorPage" responseMode="ExecuteURL" /&gt;
&lt;/httpErrors&gt;
</code></pre>
