Skip to content

Raising an HTTPException as validation in a path operation with response_model of some Pydantic model results in an Internal Server Error. What is the correct approach? #11585

Answered by Kludex
led3zma asked this question in Questions
Discussion options

You must be logged in to vote

Raise, not return.

Replies: 1 comment 1 reply

Comment options

Kludex
May 16, 2024
Collaborator Sponsor

You must be logged in to vote
1 reply
@led3zma
Comment options

Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
2 participants