Distinguish an invalid API key from connection errors : add raise_errors: bool =False improved Typing and code quality