Motion by the state to dismiss relator’s appeal from an order of the *285 district court denying Ms petition for a writ of habeas corpus.
If the allegations of plaintiff’s petition for a writ of habeas corpus, when admitted to be true after construing them liberally in favor of the petitioner, do not establish prima facie facts which would justify Ms discharge, a motion for the demal of the petition should be granted. A pеrson deprived of Ms liberty pursuant to a sentence of a court of record is not entitled to a writ of habeas corpus merely for the asking. 1 A motion for the demal of a petition for a writ tests the suffiсiency of the allegations of the petition and should be granted if the petition fails to state a claim upon wMch relief can be granted. 2 In tMs respect a motion for denial, like a motion to quаsh a writ once issued, serves the function of the old demurrer to test the sufficiency of the pleadings. 3
In passing on the sufficiency of the pleadings it must be borne in mind that, in order to justify the issuance of a writ of habeаs corpus, the relator, who has the burden of proof, must show not only a statutory violation but also that such violation was so materially prejudicial as to deprive Mm of a fair trial, and further that the resulting error could not have been corrected by a timely exercise of an existing and available right of appeal. Since it is not the function of tMs court, in considering an application for writ of habeas corpus, to demonstrate or prove that any one or more alleged errors were nonprejudicial, the writ may be summarily demed where it appears from the record as a wholе that relator has had a fair trial. In State ex rel. Schwanke v. Utecht,
“It is not every denial of statutory right, or of constitutional right, that violates the due process clause of Minn. Const, art. 1, § 7, and U. S. Const. Amend. XIV, so as to deprive the trial court of its jurisdiction to proceed and thereby render its judgment void and subject to *286 collateral attack in a habeas corpus proceeding. The denial of certain constitutional rights — as well as certain statutory rights — where the right to due process of law is left unimpaired, is not fatal to the jurisdiction of the court, and the error resulting from such denial is to be corrected through appeal and not by resorting to the extraordinary remedy of habeas corpus.”
In the light of these principles we turn to a consideration of relator’s petition (inclusive of the exhibits attached thereto as a part thereof) to ascertain whether any of the allegations establish оperative facts which, if true, would justify plaintiff’s discharge.
There is no merit in relator’s allegation that the trial court had no jurisdiction to sentence him because his initial arrest was made, allegedly in contrаvention of M. S. A. 629.34, without a prior issuance of a complaint or warrant by a magistrate. Jurisdiction over a person has its commencement with, and its sole foundation in, the actual presence of thе accused before the court without regard to the issuance or nonissuance of any warrant of arrest. Once a court has acquired jurisdiction over the person of the accused, such jurisdiсtion is not subject to attack because no warrant was issued, or because the warrant was defective or because of any other irregularity in the manner of his arrest. 4 The only function of a warrаnt is to bring the person of the accused before the court to answer the charge against him. It is also not to be overlooked that an accused by entering a plea of either guilty or not guilty in a criminal prosecution waives objection to the jurisdiction of the court over his person. 5
Although relator does not assert as a fact that he was not afforded a preliminary arraignment or examination before a committing magistrate, he does allege in substance that the record is silent as to whether such an arraignment and preliminary hearing was ever held. Regardless
*287
of how relator’s allegation is to be construed, it has no merit. A defendant who has been convicted of a felony and sentenced by a court of competent jurisdiction may not raise the objection upon habeаs corpus that there was no preliminary examination. State ex rel. Hansen v. Utecht,
Relator asserts that he was denied due process of law because he was not arraigned in the manner prоvided by § 630.01. The record reveals that relator appeared in person before the court and was then and there represented by counsel. The information charging him with having committed the crime оf rape was read to him by the county attorney and he plead to the information as read. A formal arraignment is not a requirement of due process of law, 6 and there is a sufficient complianсe with § 630.01 if the information charging the accused with the commission of a crime is read to him by the county attorney and the accused pleads to the information as so read.
Relator further contends thаt he was denied due process of law and that he was not informed by the court, as required by § 630.10, of his right to have counsel before being arraigned and that he was not asked if he desired the aid of counsel. This contention is without merit. The rеcord shows that at the time of his arraignment, he was, in fact, represented by counsel previously appointed by the court. Although § 630.10 provides that he shall be informed of his right to counsel before arraignment, and assuming that he was nоt so informed, the omission did not deprive him of due process of law since at the actual time of his arraignment and immediately prior to his sentence, he did have the help of counsel and, therefоre, still enjoyed the benefits of due process of law through a timely and proper exercise of his right to appeal. It is to be presumed that, in acting through such attorney, he acted advisedly for his own best interest. 7
We have, however, the further contention that relator’s court-appointed counsel performed his duties in such a perfunctory manner
*288
that relator had no more benefit therefrоm than he would have had from the presence of an ashtray. The bare assertion that the attorney of an accused is incompetent is of no juridical significance. Relator, with his counsel present, entered a definite and unequivocal plea of guilty. In other words, we do not here have the situation that arose in State ex rel. Dehning v. Rigg,
Upon the record we find compliance with § 628.32. The mere fact that relator appeared before the court in the judge’s chambers, and not in the courtroom, does not of itself constitute a jurisdictional defect. *289 Clearly, in this case the judge’s chambers were used as a courtroom.
10. The judgment of the trial court shows that relator plead guilty to having committed the crime of rape and that as a punishment therefor he was sentenced to be cоnfined in the state prison until duly discharged therefrom by law. Relator also plead guilty to prior convictions of felonies for which he was also sentenced to be confined in the state prison until discharged by law. Assuming that the trial court erred in failing to comply with § 610.31, which provides for increased punishment for conviction of prior felonies and not for a separate sentence, such error does not invаlidate his sentence for the crime of rape. What this court said in State ex rel. Richter v. Swenson,
“It is obvious that relator has not served the minimum sentence prescribed for the offense. He has raised no objection to his conviction of the crime for which he is now in prison. His application for a writ is based on alleged irregularities in imposition of sentence based on prior convictions. There can be no doubt that the court had jurisdiction over relator and the subject matter of the cause. Even if the court erroneously imposed a sentence greater than was permitted by law, the sеntence is valid except as to the excess which the statute does not authorize. State ex rel. Carmody v. Reed,
Until relator has served the minimum term provided for by § 617.01, his application on this ground, as well as for other irregularities, is premаture. State ex rel. Hansen v. Utecht,
Relator’s petition is denied.
Petition denied and appeal dismissed.
Notes
State ex rel. Sherin v. Goss,
See, Rule 12.02, Rules of Civil Procedure. Habeas corpus is a civil remedy, separate and apart from the criminal action. Breeding v. Swenson,
See, State ex rel. Baker v. Utecht,
See, State ex rel. Schwanke v. Utecht,
State ex rel. Schwanke v. Utecht,
supra;
State v. Warner,
Garland v. Washington,
See, State ex rel. Baker v. Utecht,
supra;
State ex rel. Schwanke v. Utecht,
State ex rel. Butler v. Swenson,
State v. Gorman,
