Closed luoyq-Rockey closed 1 year ago
try: response = client.zeppelin.ZeppelinCreate(data=body).response() print(response.result) print(response.incoming_response.status_code) except HTTPError as e: print(e.status_code) # Get the status code I want here
When the current status code is not 200, HTTPError error will be raised directly. At present, I can only try and expect to get the results of other status codes in this case. Can I control whether I need to judge the status code through configuration to meet my goal of returning the status code 400?