Robert Kowalski is dissatisfied with his treatment by judges and sheriff's personnel during his divorce proceedings. He especially accuses an Illinois judge, Shauna Boliker, of engaging in extrajudicial efforts designed to prejudice the state court against him and in favor of her best friend, Kowalski's wife. While Kowalski's allegations are troubling, in the end we conclude that the district court was correct to dismiss his case.
I
Kowalski and his former spouse have been waging a divorce and child-custody battle in the Circuit Court of Cook County, Illinois. Believing that several state judges and officials have deprived him of a fair proceeding, Kowalski filed this suit under
Judge Boliker, whom Kowalski describes as his wife's "BFF" (i.e. , her "best friend forever"), allegedly engaged in a series of improper communications with Judge David Haracz, who was originally assigned to Kowalski's domestic-relations case. The first incident occurred during a show-cause hearing held after Judge Boliker refused to comply with a subpoena for her deposition by Kowalski. At the hearing, Judge Boliker's counsel slipped Judge Haracz a "Secret Letter" from Judge Boliker to the sheriff. The letter, which Kowalski later obtained, described Kowalski as a security threat. Kowalski *993believes that Judge Boliker had several pernicious motives for writing the letter: to deprive Kowalski of his attorney identification card; to produce evidence harmful to Kowalski in his domestic-relations case; and to justify her own improper interference in Kowalski's divorce.
At the hearing, Judge Boliker's attorney denigrated Kowalski by describing him as dangerous, accusing him of habitually staring at the judge in her courtroom, and noting that the judge had posted Kowalski's picture as a warning notice. Kowalski also accuses Judge Boliker of submitting a "courtesy letter" with these warnings to Judge Haracz. (This may be the same as the "Secret Letter.") Finally, when Kowalski moved for a substitution of judges based on these ex parte communications, Judge Boliker's counsel submitted an affidavit to the court, presumably on Judge Boliker's behalf, opposing the substitution. The affidavit reiterated Judge Boliker's contentions that Kowalski posed a security risk, had sent her threatening emails, had stared at her while on the bench, and had stalked her. It also confirmed that Judge Boliker circulated Kowalski's photo and displayed it in her courtroom as a warning.
Judge William S. Boyd ultimately replaced Judge Haracz in the underlying case. Kowalski accuses Judge Dickler, the Presiding Judge of the court's Domestic Relations Division, of prejudicing Judge Boyd. Kowalski's attorney had written to Judge Dickler, asking her to send him a "courtesy copy" of Kowalski's citation to remove his children's guardian ad litem . The letter requested that Judge Dickler refer the citation "to the body responsible for the appointment list for the guardian ad litem." After Kowalski received no response, his attorney complained to Timothy Evans, Chief Judge of the Circuit Court, who referred the matter back to Judge Dickler. Judge Dickler responded to Kowalski, copying Judge Boyd and all interested parties on the response. Judge Dickler described Kowalski's letter as "an ex parte communication, essentially seeking that [Judge Dickler] exercise [her] administrative authority to rule upon a pending motion instead of ... the ... assigned judge ... without notice" to concerned parties. Judge Dickler also wrote that the letter to Chief Judge Evans had made "baseless and false allegations impugning [Judge Dickler's] integrity which [she] w[ould] not dignify with a response."
Kowalski's complaint also raises claims against the sheriff. He focuses on the sheriff's refusal to renew his attorney identification card-which provides security-free access to the courthouse-and the sheriff's failure to comply with a subpoena duces tecum in Kowalski's divorce case to produce documents related to Judge Boliker's alleged machinations against Kowalski. Kowalski's briefs frame these actions as part of a broader effort to deprive him of his federal constitutional right to an impartial judge. He is apparently asserting that the sheriff was working to bolster Judge Boliker's claims that Kowalski posed a danger out of malice toward Kowalski and a desire to cover up Judge Boliker's alleged misconduct.
The district court dismissed Kowalski's complaint. Unfortunately, it did so before the date on which Kowalski's response to the sheriff's motion to dismiss was due and before having received that response. The court held that absolute judicial immunity barred Kowalski's claims against the judges. It also ruled that Judge Boliker could not be held liable for her communications with the court because she was a witness, Kowalski having subpoenaed her (unsuccessfully) to testify. As for the sheriff, the court concluded that he had not violated Kowalski's due process rights by denying the identification card, because *994Kowalski had neither a liberty nor property interest in the card. The court also opined that the Rooker - Feldman doctrine barred Kowalski's claim that the sheriff had violated his rights by failing to respond to his subpoena because the state court had quashed it. Finally, the court suggested in the alternative that it lacked jurisdiction to hear the entire case because of the domestic-relations exception to federal jurisdiction.
II
We assess de novo a suit's dismissal for failure to state a claim or for want of subject-matter jurisdiction. Gogos v. AMS Mech. Sys., Inc. ,
A
We first consider whether lack of finality precludes appellate jurisdiction. A plaintiff generally may not appeal unless the district court has dismissed his case with prejudice. Taylor-Holmes v. Office of Cook Cnty. Pub. Guardian ,
Nonetheless, the absence of a dismissal with prejudice does not always impede appellate review. Our fundamental concern is that the district court's order "ends the suit so far as the district court is concerned." Taylor-Holmes ,
Moreover, a dismissal for want of subject-matter jurisdiction is necessarily without prejudice because it does not preclude *995pursuit of the action in a different forum. T.W. by Enk v. Brophy,
B
The first theory relating to subject-matter jurisdiction that the district court invoked was the Rooker - Feldman doctrine. Rooker - Feldman is "confined," however, to "cases brought by state-court losers complaining of injuries caused by state-court judgments rendered before the district court proceedings commenced and inviting district court review and rejection of those judgments." Exxon Mobil Corp. v. Saudi Basic Indus. Corp. ,
Moreover, even if Rooker - Feldman applied to interlocutory orders, the doctrine still would have no bearing on Kowalski's appeal because he has not asked us to reject any such order. Kowalski has disclaimed any attempt to challenge or circumvent the state court's decision to quash Kowalski's subpoena of the sheriff. He seeks not information from those defendants but rather damages for interference with his state proceeding.
C
That leaves the domestic-relations exception to federal jurisdiction. Although the present dispute arises out of a divorce and custody proceeding, that alone is not enough to trigger that exception. The exception covers a "narrow range of domestic relations issues involving the granting of divorce, decrees of alimony," and child custody orders. Ankenbrandt v. Richards ,
The Supreme Court held in Marshall that a claim of tortious interference with expectancy did not trigger the probate exception. Id . at 314,
*996
Finally, Kowalski's suit differs fundamentally from the superficially similar case of Jones v. Brennan ,
In contrast to the situation in Jones , Kowalski does not challenge any action taken by the court and its officers in the course of adjudicating his marriage or custody action. He complains only about outside actors who allegedly interfered in his case. We need not pass on the state court's application of family law in order to adjudicate Kowalski's case. The district court had jurisdiction over the case, and so we may turn to the merits.
III
The district court dismissed Kowalski's complaint before the date it had set for him to respond to the sheriff's motion to dismiss the claims against them. It should not have done so.
When a court dismisses a complaint "sua sponte , it [i]s required to give [the plaintiff] notice of its intent to do so and an opportunity to respond." Stewart Title Guar. Co. v. Cadle Co. ,
A premature dismissal often will require a remand to provide the plaintiff with an opportunity to develop and present a defense of his complaint to the district court. See Stewart Title Guar. Co. ,
Although Kowalski did not have another opportunity to present his position to the district court, we do know precisely what Kowalski intended to argue because he timely filed his brief after the district court had ruled. That brief is part of the record, and its arguments match those that Kowalski has presented on appeal. No one has argued that Kowalski has waived any of these arguments nor would we accept such an argument given the course of events. Thus, we can consider all of Kowalski's arguments as part of our de novo assessment of the legal sufficiency of his complaint. The district court's premature ruling was, therefore, harmless.
IV
Turning to the merits of Kowalski's underlying complaint, we begin by addressing whether absolute immunity precludes Kowalski's suit against either Judge Boliker or Judge Dickler. We conclude that Judge Boliker cannot claim the protection of judicial immunity but that Judge Dickler's alleged actions fall within its scope. We reject Judge Boliker's assertion of witness immunity.
A
Judge Boliker opens with the assertion that she is entitled to judicial immunity because "she was acting to ensure the security and integrity of the court." That strikes us as a step too far. Although judicial immunity is broad, it is not limitless. A judge does not enjoy immunity if he or she is acting in the "clear absence of all jurisdiction," Stump v. Sparkman ,
First, Judge Boliker acted in the clear absence of jurisdiction. We assume that she may have immunity in cases arising out of security measures she took in her own court or in connection with one of her own cases. Judge Boliker, however, gratuitously inserted herself into a case proceeding before another judge. She had no authority to control that colleague's case. That is a real problem for her: we *998have looked for at least a modicum of authority over matters arising from a case as a prerequisite for judicial immunity.
For example, in Dellenbach v. Letsinger , a judge accused of ex parte attempts to block an appeal pending the purchase of duplicate trial transcripts had already entered final judgment and therefore had technically lost jurisdiction to the appellate court.
Judge Boliker's intervention in Kowalski's trial was likewise an unprotected non-judicial act. Judicial acts are distinct from the "administrative, legislative, or executive functions that judges may on occasion be assigned by law to perform." Forrester v. White ,
Lopez v. Vanderwater ,
Judge Boliker cites only one case, Barrett v. Harrington ,
B
Unlike Judge Boliker, Judge Dickler acted neither in the clear absence of jurisdiction nor in a non-judicial capacity. This court has rejected the argument that a chief judge acts without jurisdiction when overseeing or directing the business of the court. See Dellenbach ,
Likewise, forwarding the letter to Kowalski's assigned judge and the parties to his case qualified as a judicial act. A judge can be expected to circulate an ex parte communication to all relevant parties. In fact, the Cook County Circuit Court requires a judge to disclose such communications if received "in connection with any matter pending before the judge." COOK COUNTY CIRCUIT COURT, COURT RULES , R. 17.2. Although the rule did not oblige Judge Dickler as president of the family division to disclose the communications, her disclosure could hardly be described as non-judicial when it mirrored that which was required of judges in other contexts. Judge Dickler is thus immune from suit.
C
We also conclude that Judge Boliker cannot take advantage of witness immunity.
*1000Our primary reason is waiver: she failed to present this defense to the district court, and "we will not affirm a judgment based on an affirmative defense raised for the first time on appeal." McDonald v. Adamson ,
Even if she had raised it below, the defense would fail. Witnesses "enjoy absolute immunity" to ensure that they testify truthfully without fear of reprisal. Canen v. Chapman ,
Had Judge Boliker appeared at her deposition or testified at the show-cause hearing and there impugned Kowalski's character, he could not have sued her over those statements. Yet that did not happen: she was never deposed, and she never testified. Kowalski's entire complaint centers on her submitting information to the court in an ad hoc and irregular fashion, rather than as a witness. For example, rather than testify or submit evidence at her show-cause hearing, Judge Boliker had her counsel submit the "Secret Letter" as a so-called "courtesy copy" and represent-in an unsworn conversation-that Kowalski was a security threat. Later, she again relied on the "courtesy copy" procedure to submit materials to the court. That will not do: she cannot simultaneously evade offering proper testimony and claim the protections afforded to those who testify.
V
Although we have ruled in part for Kowalski on the immunity questions, this is of no avail if his complaint fails to state a claim. In order to survive a motion to dismiss, the complaint's "well-pleaded factual allegations [must] 'plausibly give rise to an entitlement of relief.' " Silha v. ACT, Inc. ,
That is where Kowalski's section 1983 claim stumbles. Admittedly, the Supreme Court has treated a parent's interest in child custody as a form of liberty interest for purposes of Mathews v. Eldridge ,
Nor does section 1985 cover Kowalski's situation. In relevant part, section 1985(2) bars "conspir[acies] for the purpose of impeding, hindering, obstructing, or defeating, in any manner, the due course of justice in any State or Territory, with intent to deny to any citizen the equal protection of the laws."
Kowalski faces a similar roadblock under section 1985(3), which requires the complaint to assert four elements:
[T]he defendants did (1) "conspire or go in disguise on the highway or on the premises of another" (2) "for the purpose of depriving, either directly or indirectly, any person or class of persons of the equal protection of the laws, or of equal privileges and immunities under the laws." ... [O]ne or more of the conspirators (3) did, or caused to be done, "any act in furtherance of the object of [the] conspiracy," whereby another was (4a) "injured in his person or property" or (4b) "deprived of having and exercising any right or privilege of a citizen of the United States."
Griffin v. Breckenridge ,
We AFFIRM the district court's dismissal of Kowalski's suit, which we modify to be a dismissal with prejudice.
