The correct response is:
Your body shivers to help it maintain homeostasis.
In cold temperatures, the body reacts by shivering to generate heat, which is a mechanism to maintain its internal temperature and homeostasis. Sweating, on the other hand, is a response to heat, not cold.