The opinion of the court was delivered by
Porter, J.:Numerous contentions are made in regard to the principles of law which it is said are involved in this controversy. Only a few of them in our . view need be decided.
(1) It is contended by defendant that the judgment of the district court is not appealable, and that therefore this court was without authority to grant a supersedeas staying execution of the judgment and lacks jurisdiction to order the court below to act upon the motion for a new trial. It is said that no motion for a new trial was proper; that the district court has concurrent jurisdiction with the supreme court in habeas corpus; that no provision is made by statute authorizing an appeal from a judgment or decision in habeas corpus; and that the wnight of authority is to the effect that, independent of any statutory provision, an appeal will not lie. Manifestly the question whether this court may review a judgment or decision of the district court in habeas corpus is primarily involved.
Great conflict of opinion exists upon the question *481whether a judgment in habeas corpus is appealable. Many courts hold that, in the absence of statutory provision, where the action is strictly one to obtain the release of a person who claims to be illegally restrained of his liberty, no appeal lies. Other courts recognize a distinction which sometimes necessarily arises by reason of the nature and scope of the decision and have held that in that class of habeas corpus proceedings where the right to the custody of a minor child is the thing determined an appeal will lie. The action is said to partake of the nature of a private suit in which the public has no concern. • The rights of the parties are determined as in any civil action, and, being a civil action, the right to appeal follows.
Defendant relies upon the decision in In re King, 66 Kan. 695, 72 Pac. 268. In that case we declined to regard a former judgment by another court in habeas corpus for the custody of a child as absolutely conclusive and binding upon this court. The controlling consideration, however, was expressly declared to be that of the welfare of the child. It was there said:
“We agree that, so far as such a proceeding is to be considered as a mere trial of conflicting private rights, there is no reason in the nature of things why the doctrine of estoppel by former adjudication should not apply. . . . When a court in a proper proceeding, wherein conflicting claims to the right to the custody of a child are litigated, takes the custody from the parents and bestows it upon some other person, the legal right of the parent is to that extent extinguished and the new custodian has in that respect the same right formerly held by the parents. The parents may not dispute such right nor relitigate it, except upon a new state of facts. But the court has the same power to change the custody as against the new custodian as it had originally against the parents.” (Pages 698, 699.)
The case of In re Hamilton, 66 Kan. 754, 71 Pac. 817, was decided at the same term. The exact question there was whether a former judgment in habeas corpus *482determining the custody of a child was res judicata, and the distinction between that and ordinary habeas corpus proceedings was recognized. The court used this language:
“After a careful examination of the authorities, we are inclined to the opinion that, in cases of this character, where the controversy arises over the custody of a child, the real issue is one between private parties contesting a question of private right, under the form of habeas corpus proceedings, in which there arises no question of personal liberty, and in consequence all matters in issue arising upon the same state of facts determined in the prior proceeding should be regarded as settled and concluded.” (Page 756.)
It is said in volume 1 of the fourth edition of Freeman on Judgments, section 324:
“The principle of res judicata is also applicable to proceedings on habeas corpus, so far at least as they involve an inquiry into and a determination .of the rights of conflicting claimants to the custody of minor children. . . . The principles of public policy requiring the application of the doctrines of estoppel to judicial proceedings, in order to secure the repose of society, are as imperatively demanded in the cases of private individuals contesting private rights under the form of proceedings in habeas corpus as if the litigation were conducted in any other form.”
The case of In re King, supra, is not in conflict with this, nor with the doctrine of In re Hamilton, supra. It merely adds the modification that this court will consider'.the best interest of the child as always paramount to the rights of contending claimants, and will not be bound by the hard and fast rule adopted by some courts to the effect that it must first be made to appear that a change in the conditions surrounding the child has occurred since the former adjudication.
A well-considered case directly in point is The State, Baird, pros., v. Baird and Torrey, 19 N. J. Eq. 481. There it was decided that an appeal in such a case will lie notwithstanding the proceedings were by habeas*483corpus; that while in technical strictness the office of the writ is simply to remove unlawful restraint, and where this is the only purpose the right to appeal is a debatable question, still in habeas corpus for the custody of a child the petition takes a wider scope and invokes the exercise of that power of the court which is gmsi-parental.' It was held that the court in such a case acts under its general jurisdiction of the affairs of infants, and not by force of its more limited jurisdiction by proceedings in habeas corpus. (See, also, In re Mary B. Sneden, 105 Mich. 61, 62 N. Wl 1009, 55 Am. St. Rep. 435; 9 Encyc. Pl. & Pr. 1071, 1072; 15 A. & E. Encycl. of L. 213; 5 Cur. Law, 1619; Mahon v. The People, 218 Ill. 171, 75 N. E. 768; Cormack v. Marshall, 211 Ill. 519, 71 N. E. 1077, 67 L. R. A. 787; People ex rel. Lawrence v. Brady, 56 N. Y. 182; The People v. Court of Appeals, 27 Colo. 405, 61 Pac. 592, 51 L. R. A. 105.) In the last-named case the Colorado court said:
“Whatever may be the rule in this regard applicable to the usual judgment in habeas corpus discharging a party from illegal imprisonment, we think that in a case where the controversy involves the right to the custody of an infant, although the writ of habeas corpus is used to determine that right, it is nevertheless a civil suit, and the judgment rendered being a final adjudication in regard to such custody, it is clearly reviewable by the court of appeals, under the statute creating that court.” (Page 409.)
Some of the ■ authorities cited supra are based upon the conclusiveness of the former decision, proceeding upon the theory that the appealability depends entirely upon whether the former judgment is res judicata. But it is not the rule that to constitute a final judgment for the purposes of appeal it must be a bar to another suit. At common law in the court of king’s bench a final judgment did not mean a final determination of the rights of the parties, but final merely as to the particular suit. The same construction of the meaning of the term “final judgment” -has been adopted by the *484supreme court of the United States in Weston et al. v. The City Council of Charleston, 27 U. S. 449, 7 L. Ed. 481. To the same effect see Colorado Eastern Ry. Co. v. Union Pac. Ry. Co., 94 Fed. 312, 36 C. C. A. 263. A judgment in forcible entry and detainer cannot be pleaded as a bar to another action by either party, but it is, nevertheless, a final judgment from which an appeal will lie. (Redden v. Tefft, 48 Kan. 302, 29 Pac. 157.) And many other orders and judgments which are not res judicata are final for the purposes of appeal.
Another quite pertinent consideration suggests itself, which is: whether the judgment was or was not an appealable one, this court by granting a■ stay of proceedings assumed to have jurisdiction, and, until ultimately decided by this court to the contrary, it is appealable so far as that question concerns or affects this proceeding. We hold, however; that the judgment of the district court is one from which an appeal will lie.
The effect of the Illinois judgment is manifestly not involved in this proceeding, and therefore nothing said herein in reference to the conclusiveness of such judgments is decisive of that question.
(2) Plaintiff in her petition for this writ of mandamus, after reciting the proceedings below, says:
“Thereupon Mrs. Bleakley, intending no disrespect to the court, but feeling that her rights had not been respected and that the court had arbitrarily deprived her of .her fight to give bond to stay execution, which bond she could give in any sum which a court could reasonably require, and fearing that the illegal act of the court might cause her to lose her baby, she took the train to Moline, 111., the home of the relators in the Kansas suit, and is now an exile from Kansas and her home resting securely in the possession of her child under the laws of Illinois and under the protection of its courts.”
Beyond any question she was guilty of contempt in removing the subject of controversy from the jurisdiction of the court. It is urged by her counsel that she was to some extent justified in her conduct by the *485action of the court in refusing to grant her a stay of execution. Her application to be permitted to give a stay bond was made twice, once immediately after the judgment was rendered, and again after the motion for a new trial had been by the court continued to the next term. Both of these applications- were made under the provisions of section 1 of chapter 322 of the Laws of 1905, which reads as follows:
“That after the rendition of a judgment or decree in any civil action in any of the district courts of the state of Kansas, that upon the execution of a good and sufficient bond, to be approved by the court, by the party or parties against whom such judgment or decree may be rendered, it shall be the duty of such court to stay execution or order of sale upon such judgment or decree for a reasonable length of time, for the purpose of allowing such party or parties against whom such judgment or decree may be rendered to file proceedings in the supreme court of Kansas to reverse, vacate or modify such judgment or decree.”
Aside from any express statutory provision, it is generally the policy of the courts to preserve the status quo of the parties pending an appeal upon proper security being given, when that may be done without manifestly defeating the ends of justice. This statute, however, declares in positive terms that it shall be the duty of the court to grant the stay. It gives a party situated as was the plaintiff when the judgment was rendered a right which depends in no respect upon the discretion of the court. Counsel for defendant suggest a supposed case in habeas corpus for the custody of a young girl, where it might be clearly established that the defeated party intended* to keep her for the purpose of prostitution, and it is argued that to permit him under such circumstances to stay proceedings on the judgment would defeat the ends of justice. It is sufficient to say that our habeas corpus act makes express provision by which the court or judge may make such order for the temporary custody of the person as justice may require; and, in the absence of such pro*486vision by statute, the court would have inherent power in a case like the one supposed.
The learned judge of the trial court must have misconceived the force and effect of chapter 322 of the Laws of 1905 in refusing to permit Mrs. Bleakley to give a bond and stay proceedings. Nothing in the findings of the court seems to warrant the inference that there was any special necessity for placing the child in the possession and control of the Barclays pending the final determination of the rights of the parties. The $4000 bond which the court required of the successful party was one for which no express provision is.made by statute, and changed the status of the parties. Conditions might exist which would authorize a court to require such a bond, but the one which Mrs. Bleakley asked to be permitted to give is expressly providéd for by statute, and preserved the status quo. Her application should have been granted and the proceedings stayed. When this court granted a stay of further proceedings on the judgment she was no longer in .continuous contempt in fáiling to return with the child, because the district court no longer had power to enforce the judgment or jurisdiction to act in the case, further than to pass upon the motion for a new trial. Our action in superseding the judgment did not in any' sense relieve her from the charge of, or penalty for, her previous contempt; but, as observed, over that we have no jurisdiction. In order to complete the record for review by this court it became at once the duty of the court below to rule upon the motion for a new trial by either granting or denying it.
This is all that is directly involved in the proceeding. The writ will therefore issue, directing defendant to pass upon the motion for a new trial.
All the Justices concurring.