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
Actually if we follow the documentation. it works
User.save(vm.user, function (response) { FlashService.Success('Registration successful', true); $location.path('/login'); }, function (response) { FlashService.Error(response.data); vm.dataLoading = false; });
above is snip from my code it works.