This is an original habeas corpus proceeding instituted in this Court on September 2, 1965, in which the petitioner, Paul Titus, seeks a writ to require the defendant, Gerald L. Hayes, Sheriff of Lewis County, West Virginia, to release the petitioner from his confinement in the county jail of *153 Lewis County, to which he was committed by order of Wm. I. Marsh, a Justice of the Peace of Lewis County, on August 30, 1965. On that day the petitioner was found guilty by the justice of the offense of having been intoxicated in a public place and the justice imposed a fine of $10.00 and costs in the amount of $7.00. The petitioner then made application for an appeal which was granted by the justice and the petitioner executed an appeal bond, with sufficient surety, in the penalty of $500.00, conditioned for the appearance of the petitioner before the Circuit Court of Lewis County on the first day of the next term to answer the offense with which he was charged and not to depart without leave of the court, which bond was approved by the justice. The justice then demanded that the petitioner pay him the statutory fee of $2.00 for preparing the appeal bond. This the petitioner, who is not an indigent person, refused to do upon advice of his attorney, and upon such refusal the justice entered an order committing the petitioner to the Lewis County jail, where he was confined at the time of the institution of this proceeding.
Upon the petition and its exhibits this Court granted a writ returnable September 21, 1965 and admitted the petitioner to bail upon his execution of a bond with good surety, in the penalty of $100.00, conditioned for his appearance before this Court on September 21, 1965 and until the final disposition of this proceeding by this Court and caused its action to be certified to the Circuit Court of Lewis County.
Upon the return day of the writ, at which time the petitioner appeared in person, this proceeding, together with a mandamus proceeding instituted by the petitioner against Wm. I. Marsh, Justice of the Peace, in which the petitioner challenges the validity of the commitment order involved in this proceeding, was heard and submitted for decision upon the petition and its exhibits, and the demurrer and the return of the defendant, and upon the written briefs and the oral arguments of the attorneys representing the respective parties.
The petitioner contends that the order of the justice committing him to jail because of his refusal to pay the sum *154 of $2.00 to the justice for preparing the appeal bond or recognizance was unauthorized and for that reason was null and void and of no force and effect, and that the action of the justice in committing him to jail for his refusal to pay the sum of $2.00 amounts to “buying justice” and is violative of Article III, Section 17 of the Constitution of this State which provides that “The courts of this State shall be open, and every person, for an injury done to him, in his person, property or reputation, shall have remedy by due course of law; and justice shall be administered without sale, denial or delay.”
On the contrary the defendant insists that the commitment order is valid by virtue of Section 11, Article 17, Chapter 50, Code, 1931, as amended, which provides that when a justice of the peace prepares a bond or recognizance he shall be allowed a fee of $2.00 to be paid by the defendant, and by virtue of Section 9, Article 18, Chapter 50, Code, 1931, which provides that when a fine is imposed, whether with or without imprisonment and whether execution be issued for such fine and costs, a justice may adjudge the defendant to be imprisoned until such fine and all the costs are paid, but not to exceed ten days, for that cause; and, if fine and imprisonment be imposed, the defendant may be imprisoned for not exceeding ten days on account of the nonpayment of the fine and costs, in addition to the term of imprisonment imposed for the offense.
The only costs assessed and imposed by the justice were his costs of $4.00 for all official services performed by him in connection with the trial of the case as provided by Section 11, Article 17, Chapter 50, Code, 1931, as amended, and the sheriff’s fee of $3.00, or a total amount of costs of $7.00. The item of $2.00 for preparing the appeal bond or recognizance is not a part of the costs of the case and was not included in the taxation of costs by the justice but was charged for services rendered subsequent to his trial and conviction.
In 20 C. J. S., Costs, Section 453, the text contains this language with respect to costs: “The term costs ordinarily
*155
includes only items in connection with the actual presentation of testimony and the fees of specified officers, and the courts are reluctant to extend the term beyond its accepted meaning.” In
City of Carterville
v.
Cardwell,
The principle is well established that a defendant may not be imprisoned for taxable costs unless imprisonment for the nonpayment of such costs is authorized by statute. In 20 C.J.S., Costs, Section 464, the text is in this language: “It is very generally held that defendant cannot be imprisoned for costs in the absence of statutory authority therefor. Defendant may be imprisoned for the nonpayment of costs when so provided by statute, but such a statute is highly penal in its nature and should be strictly construed, and the intent of the legislature must clearly appear.” From the foregoing authorities it is manifest that a defendant may not *156 be imprisoned for the nonpayment of taxable costs unless imprisonment for the nonpayment of such costs is authorized by statute.
It is significant that Section 11, Article 17, Chapter 50, Code, 1931, as amended, which declares that a justice of the peace shall be allowed an additional fee of $2.00 “for bond or recognizance, to be paid by defendant.”, does not provide that the defendant shall be imprisoned for refusal to pay the fee of the justice or authorize the justice to commit him to jail for refusal to pay such fee. It is obvious that the charge of $2.00 for a justice of the peace for preparing a bond or recognizance to be paid by the defendant, as provided by Section 11, Article 17, Chapter 50, Code, 1931, as amended, is not an item of costs incident to the prosecution but is a fee to compensate the justice for his services in preparing an appeal bond or recognizance after the conviction of the defendant; and in the absence of statutory authority the defendant can not be imprisoned for the nonpayment of such fee. As a defendant can not be imprisoned for his refusal to pay costs, in the absence of statutory authority for such imprisonment, it is clear beyond question that, in the absence of statutory authority, the petitioner can not be imprisoned for his refusal to pay a statutory fee which is not a part of the costs of his prosecution before the justice for the offense with which he was charged and of which he was found guilty. In
Alexander
v.
Walton, Sheriff,
In
Ex Parte Coffelt,
The language of Section 9, Article 18, Chapter 50, Code, 1931, which provides that when a fine is imposed, whether with or without imprisonment and whether execution is issued, the justice may adjudge the defendant to be imprisoned until such fine and all costs are paid, but not exceeding ten days for that cause, is not applicable to the $2.00 fee demanded by the justice for preparing the appeal bond or recognizance in this case. It is clear that the foregoing provisions apply only when the judgment of the justice is final and not appealed or when such judgment is affirmed and has become final after appellate review. Manifestly such provisions do not apply when an appeal from such judgment has been allowed and while such appeal is pending and undetermined. In
McArthur
v.
Artz,
Under the foregoing authorities it is clear that the justice was without power or authority to order the imprisonment of the petitioner and to commit him to the county jail for his refusal to pay the fee of $2.00 to the justice for his services in preparing the appeal bond or recognizance. In consequence the order of the justice of the peace committing the petitioner to jail for the nonpayment of a fee of $2.00 for preparing an appeal bond or recognizance, as provided by Section 11, Article 17, Chapter 50, Code, 1931, as amended,
*159
not being authorized by statute, is null and void and its enforcement will be prevented in a habeas corpus proceeding. “A judgment which is wholly void, or is void in part, is subject to collateral attack and the enforcement of such judgment will be prevented in a habeas corpus proceeding.” Point 5, syllabus,
State ex rel. Beckett
v.
Boles,
It is a well established principle that the right of a person to the writ of habeas corpus depends on the illegality of his detention at the time of the filing of the petition and does not depend on his guilt or innocence. In 39 C.J.S., Habeas Corpus, Section 13, the text contains this language: “The right of a person to the writ of habeas corpus depends on the legality or illegality of his detention, and this in turn depends on whether the fundamental requirements of law have been complied with, and not at all on the guilt or innocence of the prisoner, or the justice or injustice of his detention on the merits. * * * . The writ of habeas corpus is concerned solely with the legality of restraint at the time of the filing of the petition for its issue, or by the condition existing at the time of the hearing or final decision thereon, and does not depend on the legality or illegality of the original caption.” The primary object of habeas corpus is to determine the legality of the restraint under which a person is held and the only issue which it presents is whether the prisoner is restrained of his liberty by due process of law. 9 M. J., Habeas Corpus, Section 5;
Pugh
v.
Pugh,
In the opinion in
Pugh
v.
Pugh,
Because the petitioner, though subsequently released on bail in this proceeding by this Court as provided by Section 7, Article 4, Chapter 53, Code, 1931, was illegally restrained under the commitment order of the justice at the time of the institution of this proceeding, he is entitled to relief in this proceeding even though, as a general rule, habeas corpus will not lie in behalf of a person discharged on bail. As the petitioner has been released on bail by this Court upon his bond with good security in the penalty of $100.00, conditioned for his appearance before this Court on September 21, 1965 and until the final disposition of this proceeding by this Court, no order of release will be issued because any such order is unnecessary; but inasmuch as the petitioner has satisfied the conditions of the bond given by him at the direction of this Court and as the order of commitment issued by the justice is null and void, that order is held to be unenforceable and the foregoing bond of the petitioner is cancelled and held for naught because its conditions have been fully complied with; and the petitioner is hereby relieved of any imprisonment or restraint of his liberty, except the requirement that he comply with and satisfy the condition of the appeal bond or recognizance which he gave before the justice to appear before the Circuit Court of Lewis County on the first day of the next term of such court to answer the offense with which he has been charged and not to depart without leave of that court so to do.
As it is not necessary in the decision of this case to consider or determine the constitutionality of Section 11, Article 17, Chapter 50, Code, 1931, as amended, this Court will not consider or determine that question. When it is not necessary in the decision of a case to determine the question of the constitutionality of a statute, this Court will not consider or determine such question.
State
v.
Harrison,
For the reasons stated, the commitment order issued by the justice on August 30, 1965, is held to be null and void and its enforcement will be prevented in this habeas corpus proceeding and the petitioner is relieved of all restraint in and about his person, except the requirement that he satisfy the condition of the appeal bond or recognizance which he executed before the justice on August 30, 1965.
Relief awarded.
