traps request errors and raises an standard exception
Merge pull request #165 from greedo/issue131

traps request errors and raises an standard exception