Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/docker/docker-py
/ is_server_error
Method
is_server_error
docker/errors.py:86–89 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
84
return
400 <= self.status_code < 500
85
86
def
is_server_error(self):
87
if
self.status_code is None:
88
return
False
89
return
500 <= self.status_code < 600
90
91
92
class
NotFound(APIError):
Callers
7
test_is_server_error_200
Method · 0.95
test_is_server_error_300
Method · 0.95
test_is_server_error_400
Method · 0.95
test_is_server_error_500
Method · 0.95
test_create_error_from_exception
Method · 0.95
__str__
Method · 0.95
is_error
Method · 0.95
Calls
no outgoing calls
Tested by
5
test_is_server_error_200
Method · 0.76
test_is_server_error_300
Method · 0.76
test_is_server_error_400
Method · 0.76
test_is_server_error_500
Method · 0.76
test_create_error_from_exception
Method · 0.76