If server returns http error code, read response body and return it in exception message
fix npe
Merge pull request #10 from DeltaFlight/master

If server returns http error code, read response body and return it in exception message