I think it's self-explanatory but if not:

/die you just do the death animation and then just lay on the ground. Obviously you aren't really dead and could possibly die for real if in a dangerous area.

Thanks.