User-1882172298 posted
How can I make existingResponse conditional on the errorMode?
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.
Is this possible?
my current configuration:
<httpErrors existingResponse="Replace" errorMode="DetailedLocalOnly">
<remove statusCode="500" />
<error statusCode="500" path="/myCustomErrorPage" responseMode="ExecuteURL" />
</httpErrors>