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

Method error_response

starlette/middleware/errors.py:258–259  ·  starlette/middleware/errors.py::ServerErrorMiddleware.error_response
(self, request: Request, exc: Exception)

Source from the content-addressed store, hash-verified

256 return PlainTextResponse(content, status_code=500)
257
258 def error_response(self, request: Request, exc: Exception) -> Response:
259 return PlainTextResponse(class="st">"Internal Server Error", status_code=500)

Callers 1

__call__Method · 0.95

Calls 1

PlainTextResponseClass · 0.90

Tested by

no test coverage detected