ASP.Net converts 401 to 302 error codes
<p>I have a custom handler and in some cases, I want to indicate to the user agent that they are not authorized (Http Error Code 401)</p>

<pre><code>        if (!IsAuthorized(context))
        {
            context.Response.StatusCode = 401;
            context.Response.End();
            return;
        }
</code></pre>

<p>When I access my handler, I am actually getting a 302 and a redirect to the forms authentication page. Is there a way to stop this from happening? </p>
