Handle error response
Merge pull request #6 from sanemat/feature/error-handling

Handle error response