xp-framework/xp-framework — comment on commit 05df153150afa4c0d0188055fac6b20069aabb9b
File: core/src/main/php/webservices/rest/server/rpc/RestHttpScriptlet.class.php line 82
By mikey179:

Shouldn't this rather be an error 405 METHOD NOT ALLOWED? The 501 is more for if the server doesn't understand the method itself, which is not the case here. See http://httpstatus.es/405 and http://httpstatus.es/501.