Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/httpx
/ raise_on_4xx_5xx
Function
raise_on_4xx_5xx
tests/client/test_event_hooks.py:52–53 ·
view source on GitHub ↗
(response)
Source
from the content-addressed store, hash-verified
50
51
def
test_event_hooks_raising_exception(server):
52
def
raise_on_4xx_5xx(response):
53
response.raise_for_status()
54
55
event_hooks = {
"response"
: [raise_on_4xx_5xx]}
56
Callers
nothing calls this directly
Calls
1
raise_for_status
Method · 0.80
Tested by
no test coverage detected