added raise_for_status() to deal with issue #1