<system.web>
<customErrors mode="On" defaultRedirect="/ErrorPages/404.aspx" redirectMode="ResponseRedirect">
<error statusCode="404" redirect="/ErrorPages/404.aspx"/>
<error statusCode="401" redirect="/ErrorPages/401.aspx"/>
</customErrors>
</system.web>
Inside my web.config i have thise configuration, but will them redirect to specifiy statusCode rather than doing in code behind.
Let's said the user is not allowed to go into the Manager side, will this automatically redirect the user to 401.aspx?