Wikipedia
Phagomimicry
Phagomimicry is a defensive behaviour of sea hares, in which the animal ejects a mixture of chemicals, which mimic food, giving the sea-hare a chance to escape. The typical defence response of the sea hare to a predator is to release two chemicals - ink from the ink gland and opaline from the opaline gland. While ink creates an dark, diffuse cloud in the water which disrupts the sensory perception of the predator by acting as a smokescreen and as a decoy, the opaline, which affects the senses dealing with feeding, causes the predator to instinctively attack the cloud of chemicals as if it were indeed food.