The reflex process in which the arrectores pilorum (hair follicle) muscles contract and cause the hair to stand erect.