A writ directed to the person detaining another, commanding him to produce the body of the prisoner at a designated time and place, with the day and reason of his caption and detention, to do, submit to, and receive whatever the court or judge awarding the writ shall consider in that behalf. Hence, an essential requisite for the availability of the writ is actual deprivation of personal liberty