Angular $http.reject vs. $q.reject
<p>I am remember researching this awhile back and coming up empty handed and I still can't find any good info on this - why does there appear to be a <code>$q.reject</code> method but not an <code>$http.reject</code> method?</p>

<p>For example, in real life we might have:</p>

<pre><code>unfollow: function (userId) {

    if (!AuthService.isLoggedIn()) {
        //$location.url('/login');
        window.location.href = '/login';
        return $q.reject({error: 'no logged-in user, but non-existent user could still click a follow button?'});
    }
    else {
        return $http({
            method: 'PUT',
            url: ConfigService.api.baseUrl + '/v1/users/add_unfollow/by_id/' + userId
        });
    }

}
</code></pre>

<p>I would rather uses the relevant <code>$http.reject</code> instead of <code>$q.reject</code>, but that doesn't seem to work.</p>