From fcb87729c9b403e4498979f8331f7284f2229c56 Mon Sep 17 00:00:00 2001 From: Malak khoder Date: Sun, 14 Dec 2025 23:03:05 +0200 Subject: [PATCH] fix: handle None value in parameter validation --- fastapi/routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/routing.py b/fastapi/routing.py index 9be2b44bc..c476a2bf6 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -407,7 +407,7 @@ def get_request_handler( raise except Exception as e: http_error = HTTPException( - status_code=400, detail="There was an error parsing the body" + status_code=400, detail="An error occurred while parsing the body" ) raise http_error from e