Aposematism
Aposematism (from apo- away, and semantic sign/meaning), perhaps most commonly known in the context of warning coloration, describes a family of antipredator adaptations where a warning signal is associated with the unprofitability of a prey item to potential predators. It is one form of "advertising" signal, with many others existing, such as the bright colours of flowers which lure pollinators. The warning signal may take the form of conspicuous colours, sounds, odours or other perceivable characteristics. Aposematic signals are beneficial for both the predator and prey, both of which avoid potential harm.
Read more about Aposematism.