Skip to content

Commit 8751edb

Browse files
committed
raise 500 in case of internal ValidationError
1 parent caf428c commit 8751edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/service-library/src/servicelib/fastapi/http_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def set_app_default_http_error_handlers(app: FastAPI) -> None:
9494
app.add_exception_handler(
9595
ValidationError,
9696
make_http_error_handler_for_exception(
97-
status.HTTP_422_UNPROCESSABLE_ENTITY,
97+
status.HTTP_500_INTERNAL_SERVER_ERROR,
9898
ValidationError,
9999
envelope_error=True,
100100
),

0 commit comments

Comments
 (0)