print status code on error
Merge pull request #1 from damienklinnert/master

print status code on error