From a9fcb9aada5a95c256d74ded2f7ada9b5c25d83d Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Wed, 11 Jun 2025 13:24:46 +0200 Subject: [PATCH] Fix type in the descr of `not_authenticated_status_code` for HTTPDigest --- fastapi/security/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi/security/http.py b/fastapi/security/http.py index f332bcf0f..5a550ff35 100644 --- a/fastapi/security/http.py +++ b/fastapi/security/http.py @@ -444,8 +444,8 @@ class HTTPDigest(HTTPBase): Literal[401, 403], Doc( """ - By default, if the HTTP Bearer token is not provided and `auto_error` - is set to `True`, `HTTPBearer` will automatically raise an + By default, if the HTTP Digest is not provided and `auto_error` + is set to `True`, `HTTPDigest` will automatically raise an `HTTPException` with the status code `401`. If your client relies on the old (incorrect) behavior and expects the