MCPcopy
hub / github.com/encode/starlette / error_500

Function error_500

tests/test_applications.py:28–29  ·  tests/test_applications.py::error_500
(request: Request, exc: HTTPException)

Source from the content-addressed store, hash-verified

26
27
28async def error_500(request: Request, exc: HTTPException) -> JSONResponse:
29 return JSONResponse({class="st">"detail": class="st">"Server Error"}, status_code=500)
30
31
32async def method_not_allowed(request: Request, exc: HTTPException) -> JSONResponse:

Callers

nothing calls this directly

Calls 1

JSONResponseClass · 0.90

Tested by

no test coverage detected