added check_response method to handle service errors