-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return 405 Method Not Allowed for unimplemented HTTP methods #25
Comments
This could be handled a lot like issue #18. I just haven't put much thought to it yet, but we could do it in a lot of ways:
Despite not being the greatest fan of a pre-declared route for 404, 405 and so on; this is the most straight-forward solution I can think of. |
Missing the @alganet: is there some simple and nice way to do that? Otherwise just a cherry-pick here should do, after ripping my head off, of course. |
Great stuff! |
Consider returning
405 Method Not Allowed
when the route exists but the requested HTTP method is not implemented for the route. AnAllow
header must also be included that lists the implemented/allowed methods. See http://tools.ietf.org/html/rfc2616#section-10.4.6.The text was updated successfully, but these errors were encountered: