diff --git a/fastapi/security/http.py b/fastapi/security/http.py index 17273d91e..138e79074 100644 --- a/fastapi/security/http.py +++ b/fastapi/security/http.py @@ -182,10 +182,10 @@ class HTTPBasic(HTTPBase): str, Doc( """ - The text to be returned to the client when `auto_error` + The text to be returned to the client when `auto_error` raises an HTTP exception. - It useful when you have multiple errors defined: set + It useful when you have multiple errors defined: set different detail text to easily differentiate which error was raised. """ ), @@ -310,10 +310,10 @@ class HTTPBearer(HTTPBase): str, Doc( """ - The text to be returned to the client when `auto_error` + The text to be returned to the client when `auto_error` raises an HTTP exception. - It useful when you have multiple errors defined: set + It useful when you have multiple errors defined: set different detail text to easily differentiate which error was raised. """ ), @@ -426,10 +426,10 @@ class HTTPDigest(HTTPBase): str, Doc( """ - The text to be returned to the client when `auto_error` + The text to be returned to the client when `auto_error` raises an HTTP exception. - It useful when you have multiple errors defined: set + It useful when you have multiple errors defined: set different detail text to easily differentiate which error was raised. """ ),