Improved error handling for BadResponseException
Merge pull request #1 from webbj74/error-handling

Improved error handling for BadResponseException