When gaining a level of exhaustion:

Once your movement reaches 0 feet, you cannot gain more exhaustion.

Lose 1 level of exhaustion after a short rest and 2 levels of exhaustion after a long rest