Use enum for ack code instead of string