Refactor response error handling
Merge pull request #36 from contentful/handle_response_errors

Refactor response error handling.