After a conviction, in the recorder’s court of Atlanta, for the violation of a city ordinance, the defendant, without proceeding by certiorari to upset the judgment, brought this petition for habeas corpus in the superior court, to attack the ordinance. as unconstitutional and void. The order of the superior court judge denied the writ, on the grounds that certiorari was the proper remedy, and that the applicant had introduced no evidence whatever to show that the ordinance was arbitrary, unreasonable, and void; the court holding that it would not declare the ordinance unconstitutional “from pleading alone.” While the petition itself does not disclose whether the petitioner made his constitutional question in the recorder’s court, so as to render him subject to a plea of res adjudicata with a preclusion of review by habeas corpus, the order of the superior court recites that, while the petitioner “introduced no evidence whatsoever,” evidence “was introduced by respondent in support of a plea in bar, respondent contending the issues here are res adjudicata.” This contention was adjudicated against the respondent, but at the same time his contention “that applicant should proceed by certiorari” was “sustained.”
It is the firmly established general rule that the writ of habeas corpus can not be used as a substitute for a writ of error or other remedial procedure to correct errors of law, of which the defendant has had opportunity to avail himself.
Sanders
v.
Aldredge,
189
Ga.
69 (
If the constitutional question, attacking the validity of the ordinance, was made in the recorder’s court, the remedy of the defendant would not have been by habeas corpus, but would have been by certiorari from the adverse judgment of that court. The petition being silent as to whether that question was raised.in the recorder’s court, but it appearing from the record that the respondent offered evidence on that issue at the habeas-corpus hearing, and .no evidence whatever being brought to this court, the judgment denying the writ must be affirmed. See
Pierce
v.
Felts,
146
Ga.
716 (
