What rules apply if my flight is canceled?

What rules apply if my flight is canceled?