Fixing bug with raise_if_response_error.
Merge branch 'master' into version1