another tweak on adding angularjs http error handling