Igor,
I have tried using error callback both as function args as well as .success vs .error paradigm and the error callback never gets invoked.
The behavior is consistent on $resource as well as $http.
For example I used $http as below
$http.jsonp(url)
.success(function(data){
console.log(data.found);
})
.error(function(data){
console.log('on error');
});
and $resource as below
var result = service.query(param, data, function (response) {
console.log('on success ');
},
function (response) {
console.log('on error ');
});
This was tried on version 1.0.6 and 1.1.4 and i had no luck with either of those.
Thanks
Murali