Friday, August 9, 2019

Http errors - Error Handling Custom

errorMode meaning
custom - means a special page overrriding the default error message. Use this to see the 404 error messages.
detailedlocalonly - will show ordinary error messages but only locally. 




<httpErrors errorMode="Custom" existingResponse="Replace">
      <remove statusCode="404" />
      <error statusCode="404" path="/404" responseMode="ExecuteURL" />
    </httpErrors>