So I\'m using angularjs restful service $resource and I\'m calling $save function. However, the error callback I pass to it is not being called. The server is sending a 41
I couldn't get Alter's answer to work, but this worked for me:
user.$save(function (user, headers) { // Success console.log("$save success " + JSON.stringify(user)); }, function (error) { // failure console.log("$save failed " + JSON.stringify(error)) });