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