store the response's http status code
set exception for when the server returns an error
Merge pull request #27 from aortbals/master

Improve http ping response