code: function (callbackId, args) {
          // TODO: Deprecate callbackSuccess and callbackError in favour of callbackFromNative.
          // Derive success from status.
          cordova.callbackFromNative(callbackId, false, args.status, [args.message], args.keepCallback);
      }
docs: Called by native code when returning error result from an action.