code: def create_error_response(code, message, status=status.BAD_REQUEST):
      
  
      errors = dict(code=code, message=message)
      return Response(errors=errors, status=status)
docs: Create a fail response.
  
      Args:
          code (str): the code of the error. The title should be lowercase and
              underscore separated.
          message (dict, list, str): the message of the error.
              This can be a list, dictionary or simple string.
          status (int): the status code. Defaults to 400.
  
      Returns:
          Response: the response with the error. The format of the error is the
              following: code and message. The code could be `user_error` or
              `internal_error`. The message contains either a string, or a list
              or a dictionary. If not specify, the status will be a 400.