raise_for_status() to handle issue #1