[Mono-dev] [PATCH] Add HttpNotFoundHandler and HttpNotImplementedHandler

Kornél Pál kornelpal at gmail.com
Mon Nov 2 04:04:05 EST 2009


Marek Habersack wrote:
>> HttpNotImplementedHandler is not used in Web.config and is most likely 
>> known by much less people but I found it in the prevously referenced 
>> book so I just implemented that as well to make the internal simple 
>> handler collection complete.
> I don't think we should include it just for the sake of it. If you want 
> it in, that's fine, but you need to modify all the spots in System.Web 
> code which throw 404 and make sure there are no regressions in 
> exception/error handling because of that. Only then the type can be 
> included.

These handlers need no special treatment. ASP.NET runtime should be and 
according to my experiences is able to receive HttpExceptions with 
status codes from handlers/user code.

Only 403 and 404 codes are treated specially, that means a more 
destrictive error page, but that should not make any distinction based 
on the origin of the exception, just the status code.

No maintenance requirements come with these two handlers. They just 
should be treated just like any other external handler. Their sole 
purpose is to throw HttpExceptions with the respective status code.

Kornél


More information about the Mono-devel-list mailing list