Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/encode/httpx
/ get_reason_phrase
Method
get_reason_phrase
httpx/_status_codes.py:39–43 ·
view source on GitHub ↗
(cls, value: int)
Source
from the content-addressed store, hash-verified
37
38
@classmethod
39
def
get_reason_phrase(cls, value: int) -> str:
40
try
:
41
return
codes(value).phrase
# type: ignore
42
except
ValueError:
43
return
""
44
45
@classmethod
46
def
is_informational(cls, value: int) -> bool:
Callers
4
reason_phrase
Method · 0.80
format_response_headers
Function · 0.80
test_reason_phrase_for_status_code
Function · 0.80
test_reason_phrase_for_unknown_status_code
Function · 0.80
Calls
1
codes
Class · 0.85
Tested by
2
test_reason_phrase_for_status_code
Function · 0.64
test_reason_phrase_for_unknown_status_code
Function · 0.64