Body cavity is the cavity present between body wall and gut wall. In some animals the body cavity is not lined by mesoderm. Such animals are called.

1.  Acoelomate

2.  Pseudocoelomate

3.  Coelomate

4.  Haemocoelomate

When body cavity is not completely lined by the mesoderm instead it is present in the form of scattered pouches, in between ectoderm and endoderm, this type of body cavity called pseudocoelomate, e.g., roundworm.
 
Acoelomates the animals in which coelom is completely absent as, e.g., flatworms.
 
Coelomates have their body cavity lined by mesoderm and hence have true coelom, e.g . annelids, molluscs, arthropods, etc.
 
Haemocoelomates are the animals in which body cavity is filled with haemolymph. e.g., arthropods, molluscs.
Page 48, XI NCERT