If the person upon whom the writ of habeas corpus is served has transferred the custody of the person detained prior to service of the writ, he shall state in his answer the name and address of the person to whom custody was transferred, the time of and the authority for the transfer, and the place where the person detained is then in custody.