Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
29
def
bad_request(req_id: str, message: str) -> HTTPException:
30
return
http_error(400, f
"[{req_id}] {message}"
)
31
32
33
def
server_error(req_id: str, message: str) -> HTTPException:
Callers
4
test_bad_request
Function · 0.90
test_error_with_special_characters
Function · 0.90
analyze_model_requirements
Function · 0.85
_prepare_and_validate_request
Function · 0.85
Calls
1
http_error
Function · 0.85
Tested by
2
test_bad_request
Function · 0.72
test_error_with_special_characters
Function · 0.72