MCPcopy Index your code
hub / github.com/fastapi/fastapi / request_validation_exception_handler

Function request_validation_exception_handler

fastapi/exception_handlers.py:20–26  ·  view source on GitHub ↗
(
    request: Request, exc: RequestValidationError
)

Source from the content-addressed store, hash-verified

18
19
20async def request_validation_exception_handler(
21 request: Request, exc: RequestValidationError
22) -> JSONResponse:
23 return JSONResponse(
24 status_code=422,
25 content={"detail": jsonable_encoder(exc.errors())},
26 )
27
28
29async def websocket_request_validation_exception_handler(

Callers 1

Calls 2

jsonable_encoderFunction · 0.90
errorsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…