Yes... they do
Mainly the fishes which are poisonous , very small [ with a body made up of fins ], having more bones , having spines over the body , etc are not suitable for eating . Eg: Puffer Fish, Toad Fish
An echidna's body is covered with spikes, or spines. These spines are not poisonous, but they are sharp and offer the echidna protection from predators.
To accurately identify a puffer fish, look for a round body shape, small fins, and the ability to inflate when threatened. Puffer fish also have spiky skin and a distinctive face with large eyes and a small mouth. Be cautious as some puffer fish can be poisonous.
defensive
defensive
A body covered with spines is the reason why a saltwater fish has the name porcupine puffer. The ability to inflate their bodies to twice the ordinary vertical size and to make porcupine-reminiscent sharp spines project even further outward serve as the Diodontidae family member's two main defenses. Porcupine puffers tend to be popular with saltwater aquarium owners because of docile behavior, slow speeds and unusual looks.
Different puffers have different deterrents. Some simply inflate themselves to appear larger than they are to either scare the other predator or to prevent themselves from being swallowed. Some have spines along their body to damage a would be predator. A few are even poisonous. Puffers are a predatory fish and as such have fast growing, strong teeth that can tear fins and devour prey.
defensive nova net
When the puffer fish inflates its body to increase its size it is a behavior called a defense mechanism. Puffer fish have highly elastic stomachs and the ability to quickly take in air or water to puff themselves up. This turns them into an inedible ball.
one spine
Mucus,spikes,scales.
The main predators of puffer fish in their natural habitat are sharks, dolphins, and sea turtles. These predators are able to consume puffer fish due to their ability to avoid the toxic chemicals found in the puffer fish's body.