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

Adding options to receive 401, 403, 503, etc.. with true/false optional #84

Open
davidcsi opened this issue Jun 4, 2015 · 0 comments
Open

Comments

@davidcsi
Copy link

davidcsi commented Jun 4, 2015

It would be great if we had the ability to to things like:

  • receive_403
  • receive_401 optional

etc... for all possible response status.

I tried doing it by adding:

#
def receive_401(opts = {})
    handle_response 401, opts
end

And this actually works, but always with optional="true", and I can't figure out how to set it to that (I don't know anything about Ruby)

Thanks!

David

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

No branches or pull requests

1 participant