MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _billing_error_response

Function _billing_error_response

fastapi_app/middleware/api_key.py:315–319  ·  view source on GitHub ↗
(exc: HTTPException)

Source from the content-addressed store, hash-verified

313
314
315def _billing_error_response(exc: HTTPException) -> JSONResponse:
316 return JSONResponse(
317 status_code=exc.status_code,
318 content={"detail": exc.detail},
319 )
320
321
322class APIKeyMiddleware(BaseHTTPMiddleware):

Callers 1

dispatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected