CCP 3825     

Art. 3825.  Answer; production of person in custody

The person upon whom the writ has been served, whether it is directed to him or not, shall file an answer stating whether he has custody of the person named in the writ.  If the person is in his custody, he shall produce him and state in his answer by what authority he holds the person detained.