MCPcopy Create free account
hub / github.com/SEC-CAFE/sec.cafe / http_error_handler

Function http_error_handler

backend/src/handler/exception/http_error.py:6–7  ·  view source on GitHub ↗
(_: Request, exc: HTTPException)

Source from the content-addressed store, hash-verified

4
5
6async def http_error_handler(_: Request, exc: HTTPException) -> JSONResponse:
7 return JSONResponse({"errors": [exc.detail]}, status_code=exc.status_code)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected