How to handle error in rest mode?

The error here means a failed opration not a failed request.For example ,I make a delete request to the server ,but for some reason ,the server can’t delete the record and response a error status {“action”:“error”}(as the docs said),but the recode in the table has already been deleted ,is there any method to catch the error and add the deleted record or prevent the record from deleting?

Hello,

DataProcessor of data components support undo and undoOnError features.

Thanks