dissenting:
Hakeem, a prisoner currently awaiting trial in Bronx County for homicide charges, petitioned the District Court for the Southern District of New York on May 9, 1989 to change the place of his confinement, alleging that brutal treatment by prison guards and New York City officials violated his constitutional rights.1
*71Hakeem’s earlier applications in New York Supreme Court for a transfer of custody were denied, after several hearings. Without taking an appeal or further pursuing his grievances in the New York courts, Hakeem came to the federal court. On August 30, 1989, Judge Mukasey dismissed his petition against the City defendants for failure to exhaust state remedies. Because I believe Hakeem’s petition for removal from his present custody must be treated as a petition for a writ of habeas corpus, I would affirm the judgment of the district court.
The habeas statute, 28 U.S.C. § 2254(b), specifically directs that á habeas application “shall not be granted unless it appears that the applicant has exhausted the remedies available in the courts of the State, or that there is either an absence of available State corrective process or the existence of circumstances rendering such process ineffective to protect the rights of the prisoner.” Neither condition has been satisfied. Hakeem’s federal complaint concedes that he has not exhausted his remedies in the New York courts. Moreover, the state courts have been highly attentive to Hak-eem’s claims, as demonstrated, in part, by the repeated hearings before Justice Lowe of New York Supreme Court and the appointment of an independent social worker to monitor Hakeem’s health and welfare. See 718 F.Supp. at 1212.
Nonetheless, the merits of Hakeem’s contentions regarding the conditions of his custody have not yet been fully adjudicated in state court. If that court finds that a transfer of custody is warranted, either to another facility within New York State or to a facility of another state through a program of mutual prisoner exchange, it can order such relief. The majority holds that the federal court has discretion, in the form of the abstention doctrine, to allow the state court to decide the measure of Hakeem’s relief in the first instance. I believe, in contrast, that such recourse is mandatory by virtue of the complaint’s status as a habeas petition and the concomitant interest in comity that undergirds the habeas statute.
I.
Apparently my colleagues refuse to see Hakeem’s petition for what it is — one for a writ of habeas corpus — because Hakeem chooses to .call it something else. Of course, we must look to the substance of the petition, rather than to its label. Hak-eem seeks from the federal court only a transfer of custody. As the majority notes, his counsel informed the district court, and again informed this court in oral argument, that all claims for other relief— such as an injunction against the prison guards and greater opportunities for medical examinations — have been withdrawn. Although the alleged underlying bases for Hakeem’s claim are the constitutional violations of the City corrections officials, the relief he effectively demands of them is sufficiently similar to the restoration of good-time credits and to other forms of relief that speed up release that the claim is properly examined under the requirements of habeas corpus. The accelerated release can occur only after an initial determination that his prison conditions — the beatings and threats — create an unconstitutional wrong, but the cases teach that where a prisoner seeks release, regardless of the wrong underlying his asserted right thereto, he must proceed by a petition for a writ of habeas corpus.
The majority’s analysis on whether section 1983 or habeas is appropriate has two components. First, noting that “[t]he gravamen of [Hakeem’s] complaint is the alleged brutalities committed” by City prison officials, it reasons that the complaint falls within section 1983 because of the statement in Preiser v. Rodriguez, 411 U.S. 475, 93 S.Ct. 1827, 36 L.Ed.2d 439 (1973), that challenges to the conditions of prison life may proceed under that statute. Second, it counters the Preiser language that prisoners “seeking immediate release” are bound *72to the habeas statute by noting that “even if [Hakeem] obtained the transfer out of the New York prison system he seeks, the ‘duration of his physical imprisonment’ would not be changed.” I disagree on both counts.
The majority relies, I believe, on a strained reading of Preiser that ignores both the facts of that case and subsequent interpretations by the Supreme Court and this court. The prisoners in Preiser challenged the prison officials’ allegedly unconstitutional denial of their “good time” credits and sought reinstatement of the credits. The Court reasoned that because granting the requested relief would result in an immediate release from custody, the complaint should have been brought under the habeas statute, not section 1983. 411 U.S. at 487-88, 93 S.Ct. at 1835-36. It concluded — with language the majority quotes— that “when a state prisoner is challenging the very fact or duration of his physical imprisonment, and the relief he seeks is a determination that he is entitled to immediate release or a speedier release from that imprisonment, his sole federal remedy is a writ of habeas corpus.” Id. at 500, 93 S.Ct. at 1841 (emphasis added).
The Supreme Court reiterated this formulation in later cases. The prisoners in Wolff v. McDonnell, 418 U.S. 539, 94 S.Ct. 2963, 41 L.Ed.2d 935 (1974), sued under section 1983 for three forms of relief: restoration of “good time” credits, a change in the prison disciplinary procedure to conform to the requirements of due process, and damages for prior civil rights violations. The Court held that section 1983 was a proper vehicle for the second and third forms of relief but not for the first. The claim for restoration of the credits, which, as in Preiser, would have resulted in an earlier release date, was held to be subject to the exhaustion requirement of habeas corpus. Accordingly, the district court, pursuant to section 1983, could order any proper relief “short of ordering the actual restoration of good time already canceled.” Id. at 555, 94 S.Ct. at 2974. See also Gerstein v. Pugh, 420 U.S. 103, 107 n. 6, 95 S.Ct. 854, 859 n. 6, 43 L.Ed.2d 54 (1975) (“Respondents did not ask for release from state custody, even as an alternative remedy.... Because [of this], the lawsuit did not come within the class of cases for which habeas is the exclusive remedy.”); O’Shea v. Littleton, 414 U.S. 488, 496, 94 S.Ct. 669, 676, 38 L.Ed.2d 674 (1974) (dictum that civil rights statutes are “inappropriate[j” for complaints “seeking relief from or modification of current, existing custody”). Accord Viens v. Daniels, 871 F.2d 1328, 1331 (7th Cir.1989) (Preiser establishes that “the distinguishing feature between a section 1983 action and a habeas petition [is] the relief requested.”) (emphasis in original); Monk v. Secretary of the Navy, 793 F.2d 364, 367-68 (D.C.Cir.1986).
Thus, despite the general language in Preiser that challenges to conditions of confinement proceed under section 1983 and challenges to the legality of the detention proceed as habeas petitions, the determinative factor in choosing between section 1983 and habeas is the form of relief the prisoner requests, not the underlying wrong that would justify that relief. In Preiser and Wolff, the alleged wrong was not an unlawful conviction or incarceration. Rather, it was.the disciplinary procedure that unconstitutionally deprived the prisoners of good-time credits, a,benefit accorded them under state law that could not be denied without due process. So construed, their claims looked like challenges to the conditions of confinement, and a court, deciding the merits of their claims, first would have had to determine whether those conditions violated the due process guarantee. But because the prison officials would have been required to release the prisoner if those claims were successful, the Court deemed habeas the exclusive remedy. The Preiser Court stated, for example, that because the expected relief was “immediate release-from physical custody,” a district court should view the allegation that good time credits were unconstitutionally deprived as an allegation that continued confinement is illegal, thus placing the claim “squarely within the traditional scope of habeas corpus.” 411 U.S. at 487, 93 S.Ct. at 1835.
*73We held similarly in Mack v. Varelas, 835 F.2d 995, 998 (2d Cir.1987), where we stated that “a civil rights action for damages, insofar as it does not also seek to void or shorten the term of imprisonment, is not a challenge that should be made by means of a habeas petition” (emphasis added). Our analysis in Mack turned on the nature of the relief that would have been required of the prison officials had the prisoner’s claim been successful. That prisoner sought damages for his unlawful incarceration, so a successful appeal of his conviction in state court would not have rendered his section 1983 claim moot because the appeal could not have provided any monetary relief. Principally for this reason, we did not require that he exhaust those state procedures before seeking damages in federal court. In contrast, if the prisoner had sought relief requiring immediate or earlier release, ha-beas — and the consequent exhaustion requirement — would have been the sole remedy.
Mack represents the other side of Preiser and Wolff The prisoner sought damages for illegal incarceration, but, in order to recover, he first had to establish that illegality on the merits. Although such a challenge looks like a habeas petition — a challenge to the very lawfulness of the confinement — section 1983 was the proper remedy because the relief requested was damages, relief that habeas does not provide. We also reached this result in Boudin v. Thomas, 732 F.2d 1107 (2d Cir.1984). The question there was whether a suit by a federal prisoner challenging her condition of solitary confinement and seeking a return to the general prison population was, for the purposes of the Equal Access to Justice Act, a “civil” action — that is, a ha-beas petition. In holding that it was, we stated:
We cannot rely ... on the labels attached to the claim. Rather, we look to the substance of the remedy [the prisoner] sought. In this case, Boudin sought to be physically moved in order to remedy past constitutional violations. This is in substance a petition for a writ of habeas corpus.
Id. at 1111 (citations omitted). We so held — despite the fact that the prisoner’s claim was rooted in a challenge to the conditions of her confinement — because she sought relief from her present custody in the form of a release from solitary confinement. We noted, in conclusion, that “habe-as is the appropriate action to challenge conditions of confinement where the prisoner seeks to be moved in order to remedy past constitutional violations.” Id. (citations omitted).
Additionally, our earlier decisions reinforce the conclusion that the form of requested relief is determinative, see Williams v. Ward, 556 F.2d 1143, 1150 (2d Cir.) (Friendly, J.) (petition challenging parole procedures, “but not demanding release or the granting of parole,” may proceed under section 1983 instead of habeas because the question of release remains within prison officials’ discretion), cert. dismissed, 434 U.S. 944, 98 S.Ct. 469, 54 L.Ed.2d 323 (1977); Taylor v. Kavanagh, 640 F.2d 450, 451 (2d Cir.1981) (“when a state prisoner is challenging his imprisonment in state facilities, his sole federal remedy is a writ of habeas corpus”); Haymes v. Regan, 525 F.2d 540, 542 (2d Cir.1975) (claim is not a habeas petition because “it is the manner of parole decision-making, not its outcome, that is challenged”), as do the decisions of other courts, see Viens v. Daniels, 871 F.2d 1328, 1334 (7th Cir.1989) (case could proceed under section 1983 because prisoners did not seek reinstatement of good time credits); Offet v. Solem, 823 F.2d 1256, 1259 (8th Cir.1987) (where “indirect effect” of successful section 1983 action would be shortening of sentence, claim must be brought as habeas petition); Young v. Kenny, 887 F.2d 237, 238-39 (9th Cir.1989) (citing cases). The majority fails to address this long line of authority.2
*74Recognizing that “the touchstone” for choosing between habeas and section 1983 is the relief required of prison officials, the majority reasons, in the second component of the its analysis, that Hakeem’s complaint seeks not to end his custody but only to have it changed from one jurisdiction to another.
This reasoning ignores the plain fact that the City officials — the only defendants over whom this court has jurisdiction in this case — would be required to cede custody of Hakeem if the district court granted his requested transfer. Whoever takes over custody, the City officials now holding him would surrender him; their authority over and responsibility for him would end, and he would be out of their hands. The fundamental flaw in the majority’s analysis is its focus solely on Hakeem himself and the fact that his status would, in essential respects, remain unchanged if the court granted him relief: He would be housed in a different facility but still be behind bars. The proper focus, however, is on the prison officials and the extent to which the district court, by granting relief, would be controlling their discretion.
On the other hand, a successful section 1983 case allows the timing of the prisoner’s release to remain in the officials’ discretion; a successful habeas petition forces their hand and commands an immediate or earlier release. See Williams, 556 F.2d at 1150. With respect to those defendants, therefore, Hakeem seeks nothing less than release from “confinement itself,” Preiser, 411 U.S. at 498, 93 S.Ct. at 1840-41.
Indeed, this court in Boudin employed a habeas analysis to decide the claim of a prisoner who asked far less of prison officials than Hakeem seeks from these defendants. That prisoner sought merely a transfer out of solitary confinement into the general prison population in the same prison. As noted, we concluded that habe-as was appropriate — even though the challenge was to the “conditions of confinement,” 732 F.2d at 1111 — because “the prisoner [sought] to be moved to remedy past constitutional violations,” id. Hak-eem, in contrast to Boudin, seeks an end to any confinement by the City authorities who now hold him.3
II.
Hakeem concededly has not exhausted his state remedies, as habeas petitioners must, 28 U.S.C. § 2254(b). Further, the “circumstances” of his case do not warrant ignoring the exhaustion requirement. See id.; cf. Granberry v. Greer, 481 U.S. 129, 107 S.Ct. 1671, 95 L.Ed.2d 119 (1987); Sanders v. Sullivan, 863 F.2d 218, 220-22 (2d Cir.1988). The state courts are clearly in a better position to review the scope of appropriate relief to which Hakeem is entitled. The state court may well decide to transfer him to another place of detention, under the control of some other authority, until the homicide charges still pending against him have been adjudicated. By affirming the dismissal of the writ for failure to exhaust state remedies, we would leave it to the state courts to pass on the merits of Hakeem’s claims and grant what*75ever relief may be appropriate. The state courts are better able to determine the proper place for the detention of a defendant awaiting trial for homicide.
Accordingly, I would affirm the judgment of the district court.
. Although he continues to be in the custody of state authorities, Hakeem is no longer in City custody on Rikers Island, making his claim against the City officials apparently moot. However, the City urges us to entertain the case because Hakeem is under indictment in Bronx County for homicide and may soon be returned to City custody. I agree with the City — as, presumably, does the majority — that Hakeem’s asserted injuries are "capable of repetition, yet *71evading review,” and that we may properly consider his appeal. See Weinstein v. Bradford, 423 U.S. 147, 149, 96 S.Ct. 347, 348-49, 46 L.Ed.2d 350 (1975) (per curiam); Rastelli v. Warden, Metro. Correctional Center, 782 F.2d 17, 20 (2d Cir.1986).
. The majority discusses Williams, yet the portion it cites weakens, rather than strengthens, its analysis. The cited passage purportedly states that challenges to prison conditions "clearly fallf ]” under section 1983. The majority glosses over the essential qualification contained in the *74very passage it quotes: "A petition protesting against prison conditions, but not seeking release, equally clearly falls within [section 1983],” 556 F.2d at 1150 (emphasis added). Hakeem, of course, does "seek[ ] release,” and for precisely that reason, his claim cannot be considered under section 1983.
. The majority dismisses Boudin too readily, noting only that because the prisoner was in federal custody, section 1983 was not a plausible alternative to habeas because "the actions of the prison officials she challenged were not taken under color of State law.” As we expressly recognized in Boudin, however, the fact of federal as opposed to state custody simply meant that the choice of remedies was not between section 1983 and state habeas under 28 U.S.C. § 2254, but between an action under Bivens v. Six Unknown Named Agents, 403 U.S. 388, 91 S.Ct. 1999, 29 L.Ed.2d 619 (1971), the federal counterpart to section 1983, and federal habeas under 28 U.S.C. § 2241. 732 F.2d at 1111. As such, we expressed no view as to whether the exhaustion requirement in state ha- . beas petitions would have altered our holding that the claim was properly a habeas petition. Although Boudin is not squarely in factual accord with the instant case, I believe its reasoning is applicable and that, if anything, there is even firmer ground here for requiring that the prisoner resort to a habeas petition because the relief is a greater imposition on the City officials’ discretion.