**How can I call error: function manually from success:function ? Is it possible ?** 

```
success: function(data) {
    response($.map(data, function(item) {
      if (item != "some value") {
        // Call error:function from here 
      }
      return item;
    }))
  },
  error: function(xhr, status, error) {
    var err = eval("(" + xhr.responseText + ")");
    alert(err.Message);
  }

```