guardian of the minor child and is having the legal right to claim the custody of the child. The entitlement of father to the custody of child is not disputed and the child being a minor aged 1½ years cannot express its intelligent preferences. Hence, in our considered view, in the facts and circumstances of this case, the father, being the natural guardian, was justified in invoking the extraordinary remedy seeking custody of the child under Article 226 of the Constitution of India.” 12. It can thus be seen that this Court has held that the habeas corpus is a prerogative writ which is an extraordinary remedy. It has been held that recourse to such a remedy should not be permitted unless the ordinary remedy provided by the law is either not available or is ineffective. It has been held that in child custody matters, the power of the High Court in granting the writ 14is qualified only in cases where the detention of a minor by a person who is not entitled to his legal custody. It has