[Mono-list] HttpException not being caught

Gonzalo Paniagua Javier gonzalo@ximian.com
Tue, 19 Aug 2003 03:59:16 +0200


El dom, 17-08-2003 a las 10:58, Piers Haken escribió:
> I'm not sure if this is new, but when an IHttpHandler.ProcessRequest
> method throws an exception like this:
>     throw new HttpException (401, "Forbidden");
> the server isn't returning the correct code/message.

MS sets a 500 error code for this. XSP now does the same.

>  
> Also, it seems that setting context.Response.StatusCode has no effect.

I fixed this while testing the If-Modified-Since patch you sent.

Thanks!

-Gonzalo