Handle errors different than 400, 401 and 503
Fix error in README regarding canonical IDs

Example was backwards.
Merge pull request #29 from codebutler/patch-1

Fix error in README regarding canonical IDs
Merge pull request #27 from pagles/master

Handles unexpected error codes.
Merge remote-tracking branch 'upstream/master'