I'm looking for a way to trigger ajax error in success callback. i have tried to explain my problem code below:
$.ajax({
url: requestURL,
data: postData,
type: 'post',
success: function(response){
if(response.Success){
// do something
}else{
// request workflow fails in this case,
// i have to trigger this ajax request's error callback
}
},
error: function(){
// do something on error case
},
dataType: 'json'
});