Skip to content

Instantly share code, notes, and snippets.

@Montgoner
Created February 19, 2021 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Montgoner/63073814879cc0fb3b9704e1d60fcab1 to your computer and use it in GitHub Desktop.
Save Montgoner/63073814879cc0fb3b9704e1d60fcab1 to your computer and use it in GitHub Desktop.
async def request_validation_exception_handler(request: Request, exc: RequestValidationError):
return PlainTextResponse(str(exc), status_code=400)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment