diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 643cadb3bc..f02bb46ae8 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -358,7 +358,7 @@ async def user_api_key_auth( ) return UserAPIKeyAuth(api_key=api_key, **valid_token_dict) else: - raise Exception(f"Invalid token") + raise Exception(f"Invalid Key Passed to LiteLLM Proxy") except Exception as e: # verbose_proxy_logger.debug(f"An exception occurred - {traceback.format_exc()}") traceback.print_exc() @@ -367,7 +367,7 @@ async def user_api_key_auth( else: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, - detail=f"Invalid user key, {str(e)}", + detail=f"Authentication Error, {str(e)}", )