I have the following Angular function:
$scope.updateStatus = function(user) { $http({ url: user.update_path, method: \"POST\",
Probably you haven't injected $http service to your controller. There are several ways of doing that.
$http
Please read this reference about DI. Then it gets very simple:
function MyController($scope, $http) { // ... your code }