react to server response