Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CJackHwang/AIstudioProxyAPI
/ server_error
Function
server_error
api_utils/error_utils.py:33–34 ·
view source on GitHub ↗
(req_id: str, message: str)
Source
from the content-addressed store, hash-verified
31
32
33
def
server_error(req_id: str, message: str) -> HTTPException:
34
return
http_error(500, f
"[{req_id}] {message}"
)
35
36
37
def
upstream_error(req_id: str, message: str) -> HTTPException:
Callers
5
test_server_error
Function · 0.90
test_error_with_unicode_in_message
Function · 0.90
queue_worker
Function · 0.85
_process_request_refactored
Function · 0.85
locate_response_elements
Function · 0.85
Calls
1
http_error
Function · 0.85
Tested by
2
test_server_error
Function · 0.72
test_error_with_unicode_in_message
Function · 0.72