The definition of 死体 and 遺体 are almost same and both of them mean the body of dead human, but there’s slight differences.
死体 is used to express just a object as a dead human. On the other hand, 遺体 is more polite way to express dead human, it has respect for the dead human as a person.
亡骸 also means the body of dead human, but it is generally used when the body without soul of sprit of the person should be stressed.
遺骨 means the bones of dead human after cremated.
死骸 is generally means dead creature, and rarely used to express dead human.
I do not have 100% confidence for my interpretation, but I hope it would be plain explanation and helpful for you.