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

Function service_unavailable

api_utils/error_utils.py:42–47  ·  view source on GitHub ↗
(req_id: str, retry_after_seconds: int = 30)

Source from the content-addressed store, hash-verified

40
41
42def service_unavailable(req_id: str, retry_after_seconds: int = 30) -> HTTPException:
43 return http_error(
44 503,
45 f"[{req_id}] Service currently unavailable. Please try again later.",
46 headers={"Retry-After": str(retry_after_seconds)},
47 )

Calls 1

http_errorFunction · 0.85