An epithelium of mesoblastic origin; a thin layer of flattened cells that lines the inside of some body cavities