Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

_mode_unavailable

modules.code.router._mode_unavailable

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Called by (2)
SymbolFileResolved by
retrieve_contextrouter.pysame file
search_coderouter.pysame file
Inside (1)
SymbolFileResolved by
routerrouter.pysame file
modules.code.router._mode_unavailablebackend/app/modules/code/router.py, lines 107–111Open source
def _mode_unavailable(exc: ModeUnavailable) -> HTTPException:    return HTTPException(        status_code=status.HTTP_503_SERVICE_UNAVAILABLE,        detail={"error": "mode_unavailable", "mode": exc.mode, "detail": exc.reason},    )

What the index recorded

Signature
def _mode_unavailable(exc: ModeUnavailable) -> HTTPException:
File
backend/app/modules/code/router.py
Lines
107–111
Parser
python-ast
Git blob
d914024790aaafe7234adda557677b76e4ad73d5
Call sites
1 named, 0 resolved, 1 left unlinked

Read it on GitHub at this commit