code: def _handle_authentication_error(self):
          
          response = make_response('Access Denied')
          response.headers['WWW-Authenticate'] = self.auth.get_authenticate_header()
          response.status_code = 401
          return response
docs: Return an authentication error.