CUDAHY, Circuit Judge.
This appeal arises from the transfer of ten inmates from state custody at Stateville prison, an Illinois prison in Joliet, Illinois (Stateville), to federal custody at the Metropolitan Correctional Center (MCC) in Chicago pursuant to 18 U.S.C. § 5003.
I.
The inmates (petitioners) brought these petitions for habeas corpus relief against both federal and state custodians. The petitions alleged that the transfer violated their rights to due process under the fifth and fourteenth amendments, their statutory rights under Title 18 U.S.C. §§ 4001(a), 5003 (1976) as interpreted in Lono v. Fenton, 581 F.2d 645 (7th Cir. 1978) (en banc),1 and article I, section 11 of the Illinois Constitution, which provides, “No person shall be transported out of the state for an offense committed within the state.”2 The transfer from Stateville to the MCC was the first step in the transfer of eight of the petitioners to federal prisons outside of Illinois.3 Petitioners Larry Hoover and Herbert Stephens were to remain incarcerated in Illinois in the federal prison at Marion.
The district court granted relief for the eight petitioners who were to be transferred to federal prisons outside of Illinois. In affording relief, the district court relied on the state constitutional claim asserted by petitioners, reasoning that under the doctrine of pendent jurisdiction set forth in United Mine Workers v. Gibbs, 383 U.S. 715, 86 S.Ct. 1130, 16 L.Ed.2d 218 (1966), it could entertain the state constitutional claims and should reach those claims before reaching the federal constitutional claims. The district court concluded that the plain language of the Illinois Constitution prohibited the transfer of the petitioners to prisons outside of Illinois. Therefore, the district court granted writs of habeas corpus as to these eight petitioners.
As to petitioners Hoover and Stephens, who were to be transferred to the federal prison at Marion, the district court held that the Illinois Constitution provided no relief, its provisions being limited to the prohibition of out-of-state transfers only. However, the district court held that on the basis of our decision in Lono v. Fenton, 581 F.2d 645 (7th Cir. 1978) (en banc), section 5003(a) required that a hearing be held to determine whether a need for specialized treatment existed to justify Hoover’s and [436]*436Stephens’ transfer. The district court ordered Hoover and Stephens’ transfer. The district court ordered Hoover and Stephens returned to state custody and further ordered that once returned no prisoner could be transferred from state to federal custody without a hearing first being held to determine whether a need for specialized treatment existed. The district court further ordered that no prisoner could be transferred to a prison outside of Illinois.4
On appeal the State of Illinois challenges the district court’s exercise of pendent jurisdiction and also the district court’s decision that section 5003(a) requires a pre-transfer hearing. We vacate and remand.
II.
The district court concluded that it had pendent jurisdiction over the state constitutional claim and that the petitioners’ rights under the Illinois Constitution were violated; the court determined that writs of habeas corpus should issue. On appeal the parties focus on the propriety of the exercise of pendent jurisdiction in a habeas corpus proceeding. But this focus ignores the more fundamental question whether the district court had the power to issue a writ of habeas corpus for a violation of state law.
The district court, in ordering habeas relief, based its exercise of power on 28 U.S.C. § 2254, the provision that governs the procedure for habeas relief to state prisoners:
The Supreme Court, a Justice thereof, a circuit judge, or a district court shall entertain an application for a writ of habeas corpus in behalf of a person in custody pursuant to the judgment of a State court only on the ground that he is in custody in violation of the Constitution or laws or treaties of the United States.
28 U.S.C. § 2254(a) (1976) (emphasis added). This provision, like the corresponding general jurisdictional grant applying to habeas corpus,5 limits habeas relief to violations of the Constitution or laws or treaties of the United States.6 Cases interpreting the ha-beas corpus statutes have uniformly held that a writ of habeas corpus can be issued only for a violation of federally protected rights.7 Cronnon v. Alabama, 587 F.2d 246 [437]*437(5th Cir.), cert. denied, 440 U.S. 974, 99 S.Ct. 1542, 59 L.Ed.2d 792 (1979); Chance v. Garrison, 537 F.2d 1212 (4th Cir. 1976); Israel v. Odom, 521 F.2d 1370 (7th Cir. 1975); McCord v. Henderson, 384 F.2d 135 (6th Cir. 1967).8
The district court ignored this principle in issuing a writ of habeas corpus for a state law violation. Instead, the district court apparently assumed that, if pendent jurisdiction over the state law claim existed, the federal remedy (embodied in § 2254) was available. This analysis, however, fails to recognize the distinction between the existence of federal court jurisdiction over the state law claim and the law that governs the state law claim.
The district court erred in failing to recognize this crucial choice-of-law issue which is implicit in the exercise of pendent jurisdiction.9 The pendent state law claim is governed in all respects by state law and the federal remedy of habeas corpus is unavailable. Merely because the state law claim is in federal court does not lead to the application of federal law. As Erie Railroad Co. v. Tompkins, 304 U.S. 64, 58 S.Ct. 817, 82 L.Ed. 1188 (1938) and its offspring make clear, absent a valid and controlling federal law, state law governs a state law claim (even in nondiversity cases). In providing for habeas relief, Congress intended to limit the issuance of the writ of habeas corpus to violations of federally protected rights, and therefore state law must govern the issue of remedy for violations of state law. Since the district court lacked the power to issue the writ of habeas corpus, that portion of the district order granting the writ must be reversed.
III.
But our holding that the district court lacked the power to issue a writ for the violation of state law does not end our inquiry. Ordinarily this holding would simply require the district court to determine, on remand, whether a state law remedy exists for the violation of state law (and, if so, to impose the state remedy). It is at this point that the issue of the propriety of pendent jurisdiction becomes properly presented — that is, the question whether the district court may determine that a violation of state law occurred and may order a state law remedy. Rather than remand for this determination, we believe that we must here and now decide the scope of pendent jurisdiction in these circumstances. The parties have fully briefed the issue and the district court did in fact hold that it had jurisdiction over the pendent claim. As noted above the court merely applied the wrong law in disposing of the claim and on remand would presumably continue to exercise jurisdiction to decide whether state law provided a remedy. Therefore, the issue of subject matter jurisdiction is now properly presented for review.
The district court concluded that under the doctrine of pendent jurisdiction, as set forth in United Mine Workers v. Gibbs, 383 U.S. 715, 86 S.Ct. 1130, 16 L.Ed.2d 218, it could decide the state law claim. Gibbs set forth a two-part test to determine whether [438]*438a state law claim could be pended to a federal claim. First, there is the question whether the federal claim is of sufficient substance to confer federal jurisdiction. Second, the issue is presented whether the federal and state claims arise out of a “common nucleus of operative fact [which plaintiff] would ordinarily be expected to try ... in one judicial proceeding....” 383 U.S. at 725, 86 S.Ct. at 1138.10
Resolution of these two issues is relevant to determining the reach of the constitutional power of a federal district court to entertain state law claims. For Article III of the Constitution circumscribes the judicial power of federal courts to hear certain cases, and it must be determined whether a federal court’s attempt to dispose of state law claims is beyond the grant of power contained in Article III.11 Gibbs, 383 U.S. at 725, 86 S.Ct. at 1138. The issue in Gibbs was, assuming that Congress has conferred jurisdiction over the case or controversy, whether the exercise of this jurisdiction is consistent with the limitations in Article III. Gibbs attempted to provide a pragmatic analysis for determining when the relationship between the federal and state claims is such that a federal court has the constitutional power to try all the issues. Thus Gibbs applied the “sufficient substance” and “common nucleus of operative facts” tests.
After determining that this power to try all the issues existed, Gibbs vested discretion in the district courts to determine whether or not this power should be exercised. Resolution of this discretionary question required a balancing of factors such as comity, fairness to the litigants, judicial economy, and the state’s interest in administering its affairs. Gibbs, 383 U.S. at 726-27, 86 S.Ct. at 1139-1140.
The district court here uncritically accepted the two-part test of Gibbs as the only relevant hurdle to overcome in exercising pendent jurisdiction. Convinced that the Gibbs criteria were satisfied, the district court concluded that pendent jurisdiction over the state law claim could and should be exercised.
But while Gibbs is relevant to the issue of pendent jurisdiction, it is by no means the only limitation on the exercise of pendent jurisdiction. The Supreme Court after Gibbs has emphasized that, besides the constitutional and discretionary issues which Gibbs addressed, we must consider the question whether the statutory grant of federal jurisdiction in question implicitly or explicitly excludes the state claim from federal court consideration. This latter question recognizes that Congress possesses considerable authority to regulate the jurisdiction of the inferior federal courts. Sheldon v. Sill, 49 U.S. (8 How.) 453, 12 L.Ed. 1147 (1850); Hart & Wechsler, The Federal Courts and the Federal System 309—22 (2d ed. 1973).
IV.
Post-Gibbs decisions recognized that Gibbs provided only a partial definition of the limits of pendent jurisdiction. In Aldinger v. Howard, 427 U.S. 1, 96 S.Ct. 2413, 49 L.Ed.2d 276 (1976), plaintiff, a county employee, filed an action under 42 U.S.C. § 1983 naming her superior, the county treasurer, Howard, as a defendant. Plaintiff’s federal claim was that she was discharged without a hearing, in violation of her due process rights. Pended to the federal claim, plaintiff also asserted a state law claim against the county. Thus, the state law claim against the county was in federal court only on the basis of the claim against the county treasurer (allegedly acting under color of state law). Plaintiff argued that under Gibbs the federal and state claims in Aldinger arose out of a common nucleus of operative fact, and therefore there was pendent jurisdiction over the state claim.
[439]*439The Supreme Court in Aldinger held that pendent jurisdiction did not exist. The Court first noted that in Gibbs the state claim was asserted against a party already properly in federal court, whereas in Aldinger the county was in federal court only on the strength of the pendent claim. 427 U.S. at 14-15, 96 S.Ct. at 2420-2421. The Court then analyzed the significance of the statutory grant of federal court jurisdiction and distinguished Gibbs.
Gibbs, and its lineal ancestor, Osborn, were couched in terms of Art. Ill’s grant of judicial power . . . since they . . . represented inquiries into the scope of Art. Ill jurisdiction .... None of them posed the need for a further inquiry into the underlying statutory grant of federal jurisdiction ....
427 U.S. at 13-14, 96 S.Ct. at 2419-2420.
The Court in Aldinger considered the scope of the federal cause of action to be significant in construing the underlying grant of jurisdiction. The Court reasoned that Congress had excluded counties from the substantive coverage in § 1983,12 and therefore by reference excluded “counties” from the jurisdictional grant in § 1343(3). Thus, pendent jurisdiction over the state law claim could not be exercised, Congress having intended not to extend federal jurisdiction over the state law claim against the county.
To be sure, Aldinger raised a problem not present in the instant case — that is, the plaintiff in Aldinger attempted to assert a pendent claim against a party which was not already properly in federal court. In the present case, however, the state law claim is being asserted against a party over whom independent federal court jurisdiction clearly exists. Thus, it would seem the simplest of tasks to distinguish away Aldinger and the statutory analysis which it requires.
But such an effort at distinction was rejected in another recent Supreme Court decision on pendent jurisdiction, Owen Equipment & Erection Co. v. Kroger, 437 U.S. 365, 98 S.Ct. 2396, 57 L.Ed.2d 274 (1978). In Owen, plaintiff Kroger, an Iowa citizen, sued Omaha Public Power District (OPPD), a citizen of Nebraska, basing jurisdiction on diversity of citizenship. 28 U.S.C. § 1332. OPPD then (on a claim for contribution) impleaded Owen, an Iowa citizen, under Fed.R.Civ.P. 14, alleging Owen’s negligence. Thereafter, Kroger amended her complaint also to assert a claim against Owen. While federal jurisdiction existed as to OPPD’s claim against Owen, Owen and Kroger were both Iowa citizens and therefore diversity jurisdiction did not exist. OPPD’s motion for summary judgment dismissing on the merits Kroger’s claim against OPPD was granted and trial proceeded on Kroger’s claim against Owen.
The Supreme Court held that pendent jurisdiction did not exist over Kroger’s claim against Owen. The Court reaffirmed Aldinger’s description of what it was exactly that Gibbs had decided:
It is apparent that Gibbs delineated the constitutional limits of federal judicial power. But even if it be assumed that the District Court in the present case had constitutional power to decide [Kroger’s] lawsuit against [Owen], it does not follow that [jurisdiction was present]. Constitutional power is merely the first hurdle that must be overcome in determining that a federal court has jurisdiction over a particular controversy. For the jurisdiction of the federal courts is limited not only by the provisions of Art. III ... but also by Acts of Congress.
437 U.S. at 371-72, 98 S.Ct. at 2401-2402.
Aldinger make[s] [it] clear that a finding that federal and nonfederal claims arise from a “common nucleus of operative [440]*440fact,” the test of Gibbs, does not end the inquiry into whether a federal court has power to hear the nonfederal claims along with the federal ones. Beyond this constitutional minimum, there must be an examination of the posture in which the nonfederal claim is asserted and of the specific statute that confers jurisdiction over the federal claim, in order to determine whether “Congress in [that statute] has . . . expressly or by implication negated” the exercise of jurisdiction over the particular nonfederal claim.
437 U.S. at 373, 98 S.Ct. at 2402 (quoting Aldinger, 427 U.S. at 18, 96 S.Ct. at 2422.)13
Although Owen already was properly in federal court on the basis of OPPD’s complaint for contribution, the Court nonetheless applied the Aldinger analysis. Thus, the fact that the pendent claim in Owen was asserted against a party already properly in federal court did not render Aldinger inapposite. Indeed, the Court believed that the Aldinger approach was controlling. This was made clear when the Court described the issue in Owen in terms of the fact pattern in Gibbs:
Nonetheless, the Court of Appeals was correct in perceiving that Gibbs and this case are two species of the same generic problem: Under what circumstances may a federal court hear and decide a state-law claim arising between citizens of the same State?
437 U.S. at 370, 98 S.Ct. at 2401.14
Thus, Aldinger cannot be limited only to those cases where a plaintiff attempts to assert a state law claim against a party not already in federal court. Instead, it applies to all cases in which it is necessary to examine the underlying statutory grant of jurisdiction.15 We therefore must determine if [441]*441Congress has spoken to the exercise of pendent jurisdiction over state law claims in the matter of habeas corpus.
V.
A.
At the outset we stress the narrowness of our inquiry in the present case. We are faced only with the interrelationship between the doctrine of pendent jurisdiction and the unique federal statutory scheme that offers habeas corpus relief to state prisoners, with emphasis on the incomparably unique problems of federalism created by such a system. We expressly eschew any broad principles capable of adoption for general application to questions of pendent jurisdiction. Rather we are faced solely with this specific issue: can a state constitutional claim be raised as a pendent claim in a habeas corpus action brought in federal court under the habeas grant of jurisdiction.16
As Aldinger and Owen make clear, our focus must be on the particular jurisdictional grant under which the claim is brought. In the present case the petition for habeas corpus was brought pursuant to 28 U.S.C. § 2254(a) which provides:
The Supreme Court, a Justice thereof, a circuit judge, or a district court shall entertain an application for a writ of habeas corpus in behalf of a person in custody pursuant to the judgment of a State court only on the ground that he is in custody in violation of the Constitution or laws or treaties of the United States.
Section 2254(a) was enacted in 1966 as part of the general amendments to the habeas corpus statutes.17 The legislative reports accompanying the 1966 amendments do not clearly indicate the purpose behind inclusion of section 2254(a).18 Prior to 1966 federal [442]*442district courts had the authority to entertain petitions for habeas corpus brought by state prisoners pursuant to 28 U.S.C. § 2241(c)(3), which provides:
The writ of habeas corpus shall not extend to a prisoner unless
He is in custody in violation of the Constitution or laws or treaties of the United States. . . .
Thus, the apparent conferral of jurisdiction contained in section 2254(a) is a restatement of the jurisdictional grant incorporated in section 2241(c)(3).19 Likewise, section 2254(a) tracks the jurisdictional requirements of section 2241(c)(3) and restates the well-established principle contained in section 2241(c)(3) — that is, the requirement that there be a violation of a federally protected right.
Section 2241(c)(3) traces its history to the first general grant of federal court jurisdiction over habeas corpus petitions brought by state prisoners. Thus, in order to determine the scope, of section 2254(a) we must also examine the historical basis of section 2241(c)(3).
B.
As we have held above, a writ of habeas corpus may be granted only on the grounds that the challenged custody is in “violation of the Constitution or laws or treaties of [443]*443the United States.”20 Matters involving issues of state law are not cognizable in a habeas corpus proceeding and federal habe-as relief cannot be granted on state law grounds. Cronnon v. Alabama, 587 F.2d 246, 250 (5th Cir. 1979). Thus, the substantive reach of the habeas corpus statute precludes relief on the basis of a state law claim.
Aldinger teaches that the scope of the jurisdictional grant is inextricably tied to the scope of the federal claim. In the present case Congress has limited the scope of habeas relief to exclude consideration of errors of state law. Thus, the corresponding grant of jurisdiction, according to Al-dinger, would also seem to be so limited.
This limitation of habeas relief to violations of solely federally protected rights becomes even more apparent when the history of section 2241(c)(3) is examined. General federal court jurisdiction over habeas corpus petitions brought by state prisoners was not legislatively created until 1867.21 The Act of 1867 was enacted immediately after the Civil War and in anticipation of the recalcitrance of the South toward the Civil War Amendments and toward the reconstruction legislation. See Cong.Globe, 39th Cong., 1st Sess. 87, 4151 (1866).22 This history, of course, sharpens the legislative focus on federally protected rights to the exclusion of state claims.
[444]*444While the exclusion of state claims from the substantive reach of the habeas corpus statutes supports our conclusion with respect to an implied statutory limitation of jurisdiction, we do not believe that we can rely solely on that circumstance. See note 15, supra. Rather, in addition, the peculiar structure of the habeas corpus statutes indicates a congressional intent to exclude state claims from federal habeas jurisdiction.23
C.
The review of state court convictions by a federal district court admittedly raises serious problems of federalism.24 Congress, cognizant of these problems of federalism, sought to structure the habeas procedure in a manner to alleviate some of these tensions and to promote comity between federal and state courts. This concern is best reflected in the requirement that a state prisoner exhaust his state remedies before seeking federal habeas relief. Also, implicit in this exhaustion doctrine is a preference of forum that potential habeas claims first be litigated in a state court before recourse is had to a federal district court.
The exhaustion requirement was first set forth in Ex Parte Royall, 117 U.S. 241, 6 S.Ct. 734, 29 L.Ed. 868 (1886) and is now codified as 28 U.S.C. § 2254(b), (c).25 This requirement allows the state courts the opportunity to correct their own errors before federal courts intervene, thus presumably easing the tension inherent in federal court review of state criminal convictions. See Fay v. Noia, 372 U.S. at 418-19, 83 S.Ct. at 837-838.
The exhaustion requirement is, therefore, based on the notion that state courts are to play at least a coequal role in enforcing federal constitutional rights and that Congress intended state courts to be the first forum in which to seek protection of federal rights.26 Only when the state courts have [445]*445failed to remedy the alleged violation will a federal court e\en find it appropriate to entertain a habeas petition.
The exhaustion principle as such does not, of course, govern the instant case. Yet we believe that the policies underlying the principle fully support our interpretation of the jurisdictional statutes governing habeas corpus. By requiring a petitioner to exhaust his claims in state court, Congress has obviously evinced a preference for initial state court litigation of federal claims. When the exhaustion requirement is read in conjunction with the limitations, already discussed, which are imposed upon the scope of the issues cognizable in a habeas corpus proceeding, we think it fair to conclude that Congress preferred that state courts be the sole forum for litigating state claims which might otherwise be pended to habeas claims.27
We reach this conclusion because the entire rationale underlying pendent jurisdiction of federal courts over state claims, the economy of judicial resources achieved by trying the pendent claim first and solely in federal court together with the factually related federal claims, is inapplicable in ha-beas corpus. The habeas corpus procedures contemplate duplicate litigation of federal constitutional claims in the interest of federalism — obviously indicating that judicial economy is not a preeminent policy consideration in habeas proceedings. It would make no sense in terms of judicial economy to pend state claims to habeas corpus claims in federal court if in any event the federal habeas claims were required to be first exhausted in state court. For all these reasons we conclude that, in general, state law claims may not be appended to federal ha-beas corpus claims, and federal courts in habeas corpus proceedings have no jurisdiction over such state law claims.
VI.
The district court’s grant of relief to eight of the petitioners on the state law claim made it unnecessary for that court to dispose of those petitioners’ federal law claims. As to petitioners Hoover and Stephens, who had no state law claims, the district court granted relief on the basis of our Lono decision. As to Hoover and Stephens (see note 30 infra) and because we are vacating that portion of the district court order granting the writs of the other petitioners on the basis of state law, we find it necessary to discuss the federal law issues.
Petitioners’ first claim, relying on our decision in Lono, alleged violations of procedural due process and 18 U.S.C. § 5003. After the district court order in the instant case had been issued, the Supreme Court explicitly rejected our Lono decision and held that no hearing is necessary before the transfer of a state prisoner to federal custody. Howe v. Smith, 452 U.S. 473, 101 S.Ct. 2468, 69 L.Ed.2d 171 (1981); see Hawaii v. Mederios, 453 U.S. 902, 101 S.Ct. 3135, 69 L.Ed.2d 989 (1981), vacating and remanding Anthony v. Wilkinson, 637 F.2d 1130 (7th Cir. 1981). Therefore, the first federal claim of all petitioners must be dismissed.
The second federal claim of petitioners is that the Illinois Constitution creates a liberty interest that cannot be extinguished without a prior hearing.28 Unlike [446]*446the first claim, which apparently rested on the contention that federal law created a liberty interest, here petitioners argue that state law creates a liberty interest. To be sure, state law can be the source of a liberty interest which triggers the application of the Due Process Clause of the Fourteenth Amendment. Greenholtz v. Nebraska Penal Inmates, 442 U.S. 1, 11-12, 99 S.Ct. 2100, 2105-2106, 60 L.Ed.2d 668 (1979). In the present case the district court did not pass upon the question whether the Illinois Constitution may create a liberty interest so as to trigger the safeguards of the Fourteenth Amendment, nor has the issue been briefed or argued.29 Therefore, this claim is remanded to the district court for further proceedings in accordance with this opinion.30 The judgments granting all the writs of habeas corpus are vacated and remanded with instructions to dismiss the complaints or, where appropriate, to consider the procedural due process question involving liberty interests purportedly created by the Illinois Constitution.