AngularApp - Update

Created the function for updating a person, error message included if it's not possible. Also created a global function within the API for error handling.