def warn_on_401(self, resp, **kwargs):
        """Response callback to warn about incorrect credentials."""
        if resp.status_code == 401:
            logger.warning(
                '401 Error, Credentials not correct for %s', resp.request.url,
            )
Response callback to warn about incorrect credentials.
product/gradle-plugin/src/main/python/pip/_internal/network/auth.py