MCPcopy
hub / github.com/opentrace/opentrace / _error

Function _error

agent/src/opentrace_agent/cli/serve.py:45–46  ·  view source on GitHub ↗
(status: int, message: str)

Source from the content-addressed store, hash-verified

43
44
45def _error(status: int, message: str) -> JSONResponse:
46 return JSONResponse({"error": message}, status_code=status)
47
48
49async def _read_json(request: Request) -> Any:

Callers 10

_with_storeFunction · 0.85
fetch_graphFunction · 0.85
_parse_capFunction · 0.85
search_nodesFunction · 0.85
list_nodesFunction · 0.85
_doFunction · 0.85
traverseFunction · 0.85
index_urlFunction · 0.85
index_progressFunction · 0.85
clear_databaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected