better logging for failed responses
Merge pull request #24 from codemix/better-logging

better logging for failed responses