def challenge(self):
        """
        Override challenge to raise an exception that will trigger regular error handling.

        """
        response = super(ConfigBasicAuth, self).challenge()
        raise with_headers(Unauthorized(), response.headers)
Override challenge to raise an exception that will trigger regular error handling.