code: def reject():
      
  
      auth_message = ('Could not verify your access level for that URL.'
                      'Please login with proper credentials.')
      auth_message = json.dumps({'_status': 'Unauthorized',
                                 'message': auth_message})
  
      headers = {'WWW-Authenticate': 'Basic realm="Login required"'}
      return flask.Response(auth_message, 401, headers=headers,
                            content_type='application/json')
docs: Sends a 401 reject response that enables basic auth.