MCPcopy
hub / github.com/gpustack/gpustack / raise_if_response_error

Function raise_if_response_error

gpustack/api/exceptions.py:99–102  ·  view source on GitHub ↗
(response: httpx.Response)

Source from the content-addressed store, hash-verified

97
98
99def raise_if_response_error(response: httpx.Response): # noqa: C901
100 if response.status_code < status.HTTP_400_BAD_REQUEST:
101 return
102 raise_errors(response)
103
104
105def raise_errors(response: httpx.Response):

Callers 15

listMethod · 0.90
watchMethod · 0.90
getMethod · 0.90
createMethod · 0.90
updateMethod · 0.90
deleteMethod · 0.90
listMethod · 0.90
watchMethod · 0.90
getMethod · 0.90
createMethod · 0.90
updateMethod · 0.90

Calls 1

raise_errorsFunction · 0.85

Tested by 1