The person or officer on whom the writ is served shall bring the body of the party in his custody or under restraint, according to the command of the writ.