Support not-json error responses

When an error response body isn't a valid json, the content is used as
string.

Change-Id: Id5c9e55e397c1a9f3516090343c1948c87e60ac9
Closes-Bug: #1276638