(
status_code: int, detail: str, headers: Optional[Dict[str, str]] = None
)
| 4 | |
| 5 | |
| 6 | def http_error( |
| 7 | status_code: int, detail: str, headers: Optional[Dict[str, str]] = None |
| 8 | ) -> HTTPException: |
| 9 | return HTTPException( |
| 10 | status_code=status_code, detail=detail, headers=headers or None |
| 11 | ) |
| 12 | |
| 13 | |
| 14 | def client_cancelled(req_id: str, message: str = "Request cancelled.") -> HTTPException: |
no outgoing calls