diff --git a/src/python/library/tritonclient/http/_client.py b/src/python/library/tritonclient/http/_client.py index 1b71d82a7..6c0c91684 100755 --- a/src/python/library/tritonclient/http/_client.py +++ b/src/python/library/tritonclient/http/_client.py @@ -366,6 +366,8 @@ def is_server_live(self, headers=None, query_params=None): request_uri=request_uri, headers=headers, query_params=query_params ) + _raise_if_error(response) + return response.status_code == 200 def is_server_ready(self, headers=None, query_params=None): @@ -396,6 +398,8 @@ def is_server_ready(self, headers=None, query_params=None): request_uri=request_uri, headers=headers, query_params=query_params ) + _raise_if_error(response) + return response.status_code == 200 def is_model_ready(