Correctly rejecting bad http responses (resolves #9)