Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Trying to configure 413 exception redirect

$
0
0

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.


Viewing all articles
Browse latest Browse all 780

Latest Images

Trending Articles



Latest Images