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

use default_error_status if set in error! function #520

Closed
wants to merge 2 commits into from

Conversation

salimane
Copy link
Contributor

@salimane salimane commented Dec 2, 2013

If default_error_status is set, the endpoint error! function still uses a hardcoded 403 http status code.
This pr sets the http status code used in the error! function to use the default_error_status whatever it is.
Thanks

@dblock
Copy link
Member

dblock commented Dec 2, 2013

This needs tests, a changelog and a README entry. Also see https://travis-ci.org/intridea/grape/jobs/14813250.

@salimane
Copy link
Contributor Author

salimane commented Dec 2, 2013

Added requested changes and Travis is now happy :)
Thanks

@dblock
Copy link
Member

dblock commented Dec 4, 2013

Merged squashed via 35a6180. Thank you.

I have also changed the default error status from 403 (weird that we were using that) to 500 in 6b35a04. Please do let me know if you think it's a bad idea.

@dblock dblock closed this Dec 4, 2013
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