refactoring re-used code into method, changing server response message