report status codes on failure
Merge pull request #76 from garbados/error-msg

report status codes on failure