Expired codes are invalid, and respect codes with infinite validity.