webix.ajax().post error and success

to handle logical business logic responses

Yep, if you are not using response code, to mark an error, you will need to check data in the success response.

By using the promise syntax it will look like

var data = webix.ajax().post(url, data).then(function(data){
   //return { "error":"something"} to trigger an error

   var is_error = data.json().error;
   if (is_error) throw(is_error);
});

data.then(success_callback, error_callback);