Getting Started:
Infrastructure Setup:
Authentication Providers:
Advanced Topics:
API Reference:
from fastapi import HTTPException from starlette.status import HTTP_400_BAD_REQUEST [docs] class PasswordPolicyError(HTTPException): """Raised when the new password does not meet the password policy.""" [docs] def __init__( self, detail: str = "Password does not meet policy requirements" ) -> None: super().__init__(status_code=HTTP_400_BAD_REQUEST, detail=detail)