Skip to content
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

adds 405 response for methods not supported on a resource instead of 404 #252

Merged
merged 3 commits into from
Oct 2, 2012

Conversation

gruis
Copy link
Contributor

@gruis gruis commented Sep 28, 2012

For every resource an 'OPTIONS' route that returns an HTTP 204 response will
be added. Also a route that will return an HTTP 405 response for
any HTTP method that the resource cannot handle will be added.

The behavior up to now has been to return an HTTP 404 response if the
resource doesn't respond to the request's HTTP method.

For every resource an 'OPTIONS' route that returns an HTTP 204 response will
be added. Also a route that will return an HTTP 405 response for
any HTTP method that the resource cannot handle will be added.

The behavior up to now has been to return an HTTP 404 response if the
resource doesn't respond to the request's HTTP method.
@dblock
Copy link
Member

dblock commented Sep 28, 2012

This looks good - I'll leave it for comments for a bit.

Can you please update the README and CHANGELOG? Also the build failed for what seems like an unrelated reason, but I could be wrong, check it out pls.

@gruis
Copy link
Contributor Author

gruis commented Sep 28, 2012

No problem, I'll take care of it tomorrow.

Thanks for being so responsive on pull requests.

@dblock
Copy link
Member

dblock commented Oct 2, 2012

Thank you, merging.

dblock added a commit that referenced this pull request Oct 2, 2012
adds 405 response for methods not supported on a resource instead of 404
@dblock dblock merged commit 5bf2d12 into ruby-grape:master Oct 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants