Penal Code § 1481
CHAPTER 1. Of the Writ of Habeas Corpus
The person to whom the writ is directed, if it is served, must bring the body of the party in his custody or under his restraint, according to the command of the writ, except in the cases specified in the next section.