Inspect response code on authenticate for correct handling of authentication failures and unexpected status code returns.
Merge pull request #165 from zinic/master

Inspect response Code on Authenticate