News for hackers. Stuff that matters.
Re:Choosing an HTTP Status Code by mkobit on Tuesday December 08, 2015 @10:49AM (#10697040)
This is the first time I have really noticed the '405 Method Not Allowed' code. This makes it seem like you should explicitly handle every verb, when in cases before I have just left them unimplemented (which typically just results in a 400). Is it considered a best practice to handle all of these other verbs with a '405'?
Re:Choosing an HTTP Status Code by wylee on Tuesday December 08, 2015 @11:34AM (#10697398)
I personally think it's best practice, although returning a generic 400 isn't _that_ bad. Libraries like Django REST Framework handle this automatically.