improved handling of error responses from server
Merge pull request #68 from crate/hau/error-handling

error handling