guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Custom HTTP methods in web module


From: Maxime Devos
Subject: RE: Custom HTTP methods in web module
Date: Sat, 23 Mar 2024 19:50:06 +0100


   (else (bad-request "Invalid method: ~a" (substring str start end)))))

 

Another problem with the old implementation – AFAICT, this does a  “400 Bad Request”. However, at least when the syntax/grammar/... is correct, it should be a 501 instead.

 

>An origin server that receives a request method that is unrecognized or not implemented SHOULD respond with the 501 (Not Implemented) status code. An origin server that receives a request method that is recognized and implemented, but not allowed for the target resource, SHOULD respond with the 405 (Method Not Allowed) status code.

 

Given the proposal to (in this procedure) allow all methods (at least all grammatical methods) in a new implementation, it seems this won’t be this method’s responsibility anymore, though.

 

Best regards,

Maxime Devos

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]