John, At this time in the Handler class, the 501 status is used for 2 cases : - the method of the request is unknown (not a GET, PUT, etc), - the method is known, but there is no handler for the resource.
I think we all agree that 501 status fits the first case. But, for the second case, I would like to ask the following question : if the response status is 405, is it possible to define the allowed methods for the resource though the resource cannot be handled? I wonder if status 404 should be used instead in this case. Regards, Thierry Boileau On 12/9/06, John D. Mitchell <[EMAIL PROTECTED]> wrote:
The Handler.defaultHandle() method returns a 501 (Status.SERVER_ERROR_NOT_IMPLEMENTED). However, RFC2616 says: <<<<< 10.5.2 501 Not Implemented The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource. >>>>> Note the last phrase about no about to support that [method] for any resource. Doesn't that imply that the defaultHandle() method should return a 405 (Status.CLIENT_ERROR_METHOD_NOT_ALLOWED) instead? Thanks, John