add a raise_from_response helper method
Merge pull request #1 from xivo-pbx/better-exceptions

add a raise_from_response helper method