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

Function bad_request

api_utils/error_utils.py:29–30  ·  view source on GitHub ↗
(req_id: str, message: str)

Source from the content-addressed store, hash-verified

27
28
29def bad_request(req_id: str, message: str) -> HTTPException:
30 return http_error(400, f"[{req_id}] {message}")
31
32
33def server_error(req_id: str, message: str) -> HTTPException:

Callers 4

test_bad_requestFunction · 0.90

Calls 1

http_errorFunction · 0.85

Tested by 2

test_bad_requestFunction · 0.72