Treat HTTP code 400 and above as error.

Fixes bug 1116559.

Change-Id: I4b12176599686f7e545b63c8e54cf9da6a1f963e
Merge "Treat HTTP code 400 and above as error."