Class to provide helper methods for HTTP responses
For backward compatibility this methods should be accessed
as object’s fields (eg.,
They are not assigned to object’s fields on initialization to be evaluated lazily and to be able to throw errors.
Parse json from body.
Check that status code is 2xx.