MCPcopy 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:

Calls 1

codesClass · 0.85