Reactions to foods can be from immune reactions, or from other mechanisms.
Allergy is an immune reaction against the food. An intolerance might happen when you lack an enzyme to digest the food, such as with lactose
(milk) intolerance. Generally speaking, intolerances are milder, not life-threatening, and cannot be diagnosed by typical allergy scratch or prick tests.