Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/docker/docker-py
/ is_error
Method
is_error
docker/errors.py:78–79 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
76
return
self.response.status_code
77
78
def
is_error(self):
79
return
self.is_client_error() or self.is_server_error()
80
81
def
is_client_error(self):
82
if
self.status_code is None:
Callers
7
test_is_error_300
Method · 0.95
test_is_error_400
Method · 0.95
test_is_error_500
Method · 0.95
test_443_handle_nonchunked_response_in_stream
Method · 0.80
test_pull_invalid_platform
Method · 0.80
test_build_invalid_platform
Method · 0.80
test_build_invalid_platform
Method · 0.80
Calls
2
is_client_error
Method · 0.95
is_server_error
Method · 0.95
Tested by
7
test_is_error_300
Method · 0.76
test_is_error_400
Method · 0.76
test_is_error_500
Method · 0.76
test_443_handle_nonchunked_response_in_stream
Method · 0.64
test_pull_invalid_platform
Method · 0.64
test_build_invalid_platform
Method · 0.64
test_build_invalid_platform
Method · 0.64