Skip to content

use default_error_status if set in error! function#520

Closed
salimane wants to merge 2 commits intoruby-grape:masterfrom
salimane:pr_default_status
Closed

use default_error_status if set in error! function#520
salimane wants to merge 2 commits intoruby-grape:masterfrom
salimane:pr_default_status

Conversation

@salimane
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

salimane commented Dec 2, 2013

Added requested changes and Travis is now happy :)
Thanks

@dblock
Copy link
Copy Markdown
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