Return Error as String or Undefined in case of Success