AngularJS check response success or error
rvspMeetingService.getValidMeetingInvitation(vm.invitation_hash)
.then(function(response){
//if success/good response from server
//angular current version dont have status in sucessCallback while errorCallback have status code
if (!('status' in response)) {
console.log('first rvsp service', response);
}
else {
console.log('not valid meeting invitation, stop here');
return false;
}
});