MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / client_cancelled

Function client_cancelled

api_utils/error_utils.py:14–15  ·  view source on GitHub ↗
(req_id: str, message: str = "Request cancelled.")

Source from the content-addressed store, hash-verified

12
13
14def client_cancelled(req_id: str, message: str = "Request cancelled.") -> HTTPException:
15 return http_error(499, f"[{req_id}] {message}")
16
17
18def client_disconnected(req_id: str, stage: str = "") -> HTTPException:

Callers 4

queue_workerFunction · 0.85
cancel_queued_requestFunction · 0.85

Calls 1

http_errorFunction · 0.85