displaying response body as error when getting a json parse error