Report HTTP errors properly.

latest commit 7b38f52d8a
@Katharine authored