Throwing "No such HTTP method" is confusing
vsavkin opened this issue · comments
Victor Savkin commented
I think it'd be better to replace noSuchMethod with explicit method declarations of get,post, etc.. But even if there is reason to keep it, the error is super confusing. For instance:
get('/lala', (req, res){
Hello
});
Will raise "No such HTTP method", because "Hello" isn't in the list of http methods.