httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <>
Subject Re: Limit directive and unimplemented methods
Date Wed, 18 Jul 2001 21:44:30 GMT
> I have a question regarding unsupported methods in <LIMIT> directives.
> Let's say that you could limit arbitrary methods that different modules
> have implemented. For this example, a module has defined a new method FOO,
> but no module handles method FOO2:
> In the cconfig file:
>  ...
> </LIMIT>
> What would the correct behavior be if a user made a request with method
> FOO2? It seems to me that according to the RFC, it should ignore this
> Limit directive and return 501 (not implemented) instead of 401 (auth
> required)  or 405 (method not allowed).

If the server has a limit directive with the method name, then it knows
the method and has therefore implemented it.  The module determines what
is allowed per resource, not per server, so either 401 or 405 should be


View raw message