The person on whom the writ is served shall bring the person being detained, according to the command of the writ, to the judge named on the writ except when the detained person is sick, as provided in section 589.20.