-
Notifications
You must be signed in to change notification settings - Fork 45
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
Invalid method returns 404 not 405 #257
Comments
If you implemented a route in Express that had a |
I don't use JS, so I haven't a clue what Express does. The specification seems quite clear that 405 is to be used when the method is not supported by the resource (
|
Googling, I see that Express doesn't do this because it's too complicated to do in their codebase: expressjs/express#1895 (comment) API Gateway shouldn't have this problem as it knows all the valid methods for any given path as we have to create them... (of course, I'm making assumptions here!) |
any updates? |
Given an API Gateway set up to only accept GET, if I try to POST to it, I get a
404
back.I should get a
405
as the resource exists (i.e. was found), but I'm not allowed to access it with this method.The text was updated successfully, but these errors were encountered: