I'm trying to configure my web.config to redirect the 413 statusCode. I've tried many different variations of settings, and nothing seems to be working. The two main variations I've tried are:
<customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="/Errors/index.htm"><error statusCode="413" redirect="/Errors/413.htm" /></customErrors>
and
<httpErrors errorMode="Custom"><remove statusCode="413"/><error statusCode="413" path="/Errors/413.htm" responseMode="File"/></httpErrors>
Running on IIS10.
Any help would be appreciated.