def unauthorized(self, response):

        if self.serve_challenge_on_401:
            realm = current_app.config.get("HTTP_BASIC_AUTH_REALM", "flask-restful")
            challenge = u"{0} realm=\"{1}\"".format("Basic", realm)

            response.headers['WWW-Authenticate'] = challenge
        return response
cancel(cancelid[,serverctrls=None[,clientctrls=None]]) -> int
dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/__init__.py/Api.unauthorized--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/python-ldap-2.3.13/Lib/ldap/ldapobject.py/SimpleLDAPObject.cancel