Handling Responses from the Server