Treat non-200 HTTP response as error.

Change-Id: I2a9f3b47012b3c4839be53aa44c66d16dd41a24a