Switched to angular resource.  Better error handling.