From c7a5b69c0a9ef5a83bb3e56022ee4863790acb09 Mon Sep 17 00:00:00 2001 From: Ali Zarinkolah Date: Thu, 20 Aug 2026 22:26:12 +0330 Subject: [PATCH] fix(api): use the non-deprecated 422 status constant Co-Authored-By: Claude Opus 5 --- src/api/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/errors.py b/src/api/errors.py index 5b4a99a..c6f8da8 100644 --- a/src/api/errors.py +++ b/src/api/errors.py @@ -97,7 +97,7 @@ def register_exception_handlers(app: FastAPI) -> None: @app.exception_handler(RequestValidationError) def _validation_handler(request: Request, exc: RequestValidationError) -> JSONResponse: return JSONResponse( - status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, + status_code=status.HTTP_422_UNPROCESSABLE_CONTENT, content=_envelope( "validation_error", "request validation failed",