diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index 1638f93e75d..9f419bfad18 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -1798,7 +1798,7 @@ async def get_key_object( ) if _valid_token is None: - raise ProxyException( + raise ProxyAuthenticationException( message="Authentication Error, Invalid proxy server token passed. key={}, not found in db. Create key via `/key/generate` call.".format( hashed_token ),