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