clean up some aspects in the error handling of requests
Merge pull request #91 from jackalope/clean_error_handling

clean up some aspects in the error handling of requests