Marvin Gleash has filed two essentially identical suits complaining that prison guards violated the eighth amendment by confiscating a back brace that the prison’s medical staff had provided. The district court dismissed the first suit with prejudice under 28 U.S.C. §§ 1915(e)(2)(B)(ii) and 1915A(b)(l) for failure to state a claim on which relief may be granted. The judge viewed the complaint as challenging the medical staffs delay in furnishing a replacement; that grievance, the judge stated, alleges only negligence and thus does not state a constitutional claim. See
Farmer v. Brennan,
The judge’s first decision is problematic because it did not come to grips with Gleash’s principal contention. Confiscation of a medical device for no reason other than to inflict pain violates the eighth amendment. Moreover, the judge’s second decision cannot be sustained on the ground that he gave. No rule of federal law requires the dismissal of a second or successive civil suit, even if another concerning the same controversy is pending.
Colorado River Water Conservation District v. United States,
Yet although the district court’s explanation was deficient, its judgment may be correct. Gleash’s first suit was over, and a renewal may be dismissed on the ground of claim preclusion (res judicata) even
if
the decision in the first was transparently erroneous. See
Federated Department Stores, Inc. v. Moitie,
One potential response might be that claim preclusion is an affirmative defense, which judges should not entertain when conducting pre-service screening under §§ 1915(e)(2)(B) and 1915A. Briefing this question at our request, Gleash’s counsel commendably replied that a court that has discretion to raise affirmative defenses on its own after service, see
Arizona v. California,
Only one way out has been suggested: Gleash’s appellate counsel contends that the district judge should have treated the second complaint not as an independent suit but as a motion for relief under Fed.R.Civ.P. 60(b)(6) in the initial (and thus the only) suit. Although the point is well argued, it cannot prevail. Trae enough, courts give effect to the substance of a document and not to its caption. See, e.g.,
Smith v. Barry,
Anyway, it would do Gleash no good to treat this as a Rule 60(b) motion, not only because appellate review is deferential, see
Metlyn Realty Corp. v. Esmark, Inc.,
Counsel contends that prisoners’ suits should be handled differently because erroneous orders under §§ 1915(e)(2)(B) and 1915A may be counted against a prisoner’s limit of three frivolous suits or appeals
in forma pauperis.
See 28 U.S.C. § 1915(g). The district judge stated that Gleash’s initial complaint was one of these “strikes.” That notation is no more than a housekeeping matter, however; whether a prisoner is disqualified under § 1915(g)
*762
must be determined by the court in which the
fourth
action is filed. See
Evans v. Illinois Department of
Corrections,
For what it may be worth, our view of this matter differs from the district judge’s: Gleash’s first suit was
not
frivolous and does not count against the limit of three. But his second suit, squarely barred by claim preclusion, is frivolous. This appeal is not itself frivolous; we did not determine until after Gleash filed his notice of appeal that district judges are entitled to dismiss (before service) on account of affirmative defenses other than immunity. See
Walker,
Affirmed
