MCPcopy
hub / github.com/scrapy/scrapy / response_status_message

Function response_status_message

scrapy/utils/response.py:56–60  ·  view source on GitHub ↗

Return status code plus status text descriptive message

(status: bytes | float | str)

Source from the content-addressed store, hash-verified

54
55
56def response_status_message(status: bytes | float | str) -> str:
57 """Return status code plus status text descriptive message"""
58 status_int = int(status)
59 message = http.RESPONSES.get(status_int, "Unknown Status")
60 return f"{status_int} {to_unicode(message)}"
61
62
63def _remove_html_comments(body: bytes) -> bytes:

Callers 2

process_responseMethod · 0.90

Calls 2

to_unicodeFunction · 0.90
getMethod · 0.45

Tested by 1