def create_error_payload(exception, message, endpoint_id):
  """
  Formats an error message to be added in case of failure
  """

  print(f'{exception}: {message}')
  error_payload = {
    'status': 'MESSAGE_ERROR',
    'message': f'{exception}: {message}'        
  }  
  return error_payload