Handle errors different than 400, 401 and 503
Merge pull request #27 from pagles/master

Handles unexpected error codes.