Pennsylvania Consolidated Statutes homeSearch Pennsylvania
Pa. Cons. Stat.42 Pa. Cons. Stat. (Judiciary)Chapter 65

42 Pa. Cons. Stat. § 6502 (2026)

  Power to issue writ.

Edition and currency
laws through the 2026 session (checked Sept. 2026). The text is the edition Syfert holds; for a past event, check the version in force on that date.
Coverage note: this corpus holds the consolidated Pa.C.S. titles only. Unconsolidated P.S. statutes (UTPCPL 73 P.S. § 201-1, Liquor Code, wage payment laws) are not included; a miss here does not mean the statute does not exist. Check palegis.us.
Other sources
CURRENTlaws through the 2026 session (checked Sept. 2026) cited 1983–2025 38citing cases
At a glance

Courts have cited this section in 38 opinions since 1983, 11 of them in the last five years. The most litigated part is subsection (a) (11 cases).

§ 6502.  Power to issue writ.

(a)  General rule.--Any judge of a court of record may issue the writ of habeas corpus to inquire into the cause of detention of any person or for any other lawful purpose.

(b)  Venue.--The venue of matters brought under this chapter shall be as prescribed by general rule.

The 20 cases that cite 42 Pa. Cons. Stat. § 6502 most heavily, weighted by court and treatment. RelevanceNewestTreatment
1
GREENCommonwealth v. Isabell, 467 A.2d 1287 (Pa. 1983).
cites § 6502 6×subsections: (a) 2×cited by 88 cases
Where it cites § 6502
“In the instant case, the judge who imposed the sentence, Judge Durham, has not had the opportunity to consider appellant's claim because it was raised for the first time on appeal. That judge *11 is best qualified to initially resolve any disputes regarding the interpretation of…”
The case’s holding
A signed sentencing order controls over oral statements made by a judge that are not incorporated into the written judgment of sentence.
Later courts cite it for
“generally, the signed sentencing order, if legal, controls over oral statements of the sentencing judge not incorporated into the signed judgment of sentence.” · 15 citing courts
2
GREENCoady v. Vaughn, 770 A.2d 287 (Pa. 2001).
cites § 6502 2×subsections: (a) 2×cited by 143 cases
Where it cites § 6502
“See 42 Pa.C.S. § 6502(a). Indeed, there was no issue in Rogers concerning the availability of state habeas corpus review.”
The case’s holding
A writ of mandamus is the proper remedy to challenge a parole denial based on the improper application of statutory changes that violate the ex post facto clause.
Later courts cite it for
“it is undisputed that an inmate does not have a clear legal right to the grant of parole, nor does the board have a corresponding duty to grant the same.” · 25 citing courts
3
YELLOWCommonwealth v. Carbo, 822 A.2d 60 (Pa. Super. Ct. 2003).
cites § 6502 4×subsections: (a) 2×cited by 26 cases
Abrogated by Commonwealth v. Dantzler on other grounds: 2 citing opinions limit it to other grounds.
Where it cites § 6502
“¶ 4 The March 1, 2001, order of Judge Rossanese from which the Commonwealth took the instant appeal, was not an order entered by an "issuing authority", but rather was an order entered by a commissioned judge of the Court of Common Pleas after a hearing on a writ of habeas…”
4
GREENBrown v. Pennsylvania Dep't of Corr., 81 A.3d 814 (Pa. 2013).
cites § 6502 2×cited by 32 cases
Where it cites § 6502
“42 Pa.C.S. § 6502. However, pursuant to Section 5103(a) of the Judicial Code, If an appeal or other matter is taken to or brought in a court or magisterial district of this Commonwealth which does not have jurisdiction of the appeal or other matter, the court or magisterial…”
The case’s holding
A habeas corpus petition filed in a court lacking jurisdiction is not dismissed but belongs in the court of record from which the detention order originated, and must be transferred there.
Later courts cite it for
“is properly addressed in the court of record from which his judgment of sentence originated.” · 3 citing courts
5
GREENRivera v. Pennsylvania Dep't of Corr., 837 A.2d 525 (Pa. Super. Ct. 2003).
cites § 6502 1×cited by 78 cases
Where it cites § 6502
“See 42 Pa.C.S. §§ 6502 (Power to issue writ); 6503 (Right to apply for writ).”
The case’s holding
Unpleasant prison conditions do not constitute cruel and unusual punishment unless they deprive inmates of minimal civilized necessities or demonstrate deliberate indifference by officials.
6
GREENCommonwealth v. Wolfe, 605 A.2d 1271 (Pa. Super. Ct. 1992).
cites § 6502 2×cited by 33 cases
Where it cites § 6502
“2d 110 (1971); see also 42 Pa.C.S. § 6502. Habeas corpus is a civil remedy, regardless of whether the prisoner has been detained under civil or criminal process.”
The case’s holding
Habeas corpus is an extraordinary remedy that may only be invoked when ordinary remedies have been exhausted or are unavailable and is not a substitute for appellate review.
Later courts cite it for
“may be invoked only when remedies in the ordinary course have been exhausted or are not available; the writ is not a substitute for appellate review.” · 5 citing courts
7
GREENGillespie v. DEPT. OF CORR., 527 A.2d 1061 (Pa. Commw. Ct. 1987).
cites § 6502 1×cited by 74 cases
Where it cites § 6502
“Thus, since Gillespie is challenging neither the legality of his initial five to ten year sentence, the legality of his subsequent three to six month sentence, nor the fact that they are consecutive to each other, he has not made out a proper habeas corpus action.”
The case’s holding
The sentencing code requires mandatory aggregation of minimum and maximum terms once a court imposes consecutive sentences.
Later courts cite it for
“the prisoner serve the aggregate of all the minimum terms imposed under the various consecutive sentences,” · 5 citing courts
8
GREENCommonwealth ex rel. Fortune v. Dragovich, 792 A.2d 1257 (Pa. Super. Ct. 2002).
cites § 6502 1×cited by 22 cases
Where it cites § 6502
“See 42 Pa.C.S. §§ 6502 (Power to issue writ); 6503 (Right to apply for writ).”
Later courts cite it for
“only when no other remedy is available for the condition the petitioner alleges or available remedies are exhausted or ineffectual.” · 2 citing courts
9
GREENKester v. Pennsylvania Bd. of Prob. & Parole, 609 A.2d 622 (Pa. Commw. Ct. 1992).
cites § 6502 2×subsections: (a) 2×cited by 13 cases
Where it cites § 6502
“1984) (ancillary jurisdiction is a tool by which a federal district court acquires jurisdiction of all facets of a case properly in a federal court because a portion of the issues presented confer federal jurisdiction).”
10
GREENGeorgevich v. Strauss, 772 F.2d 1078 (3d Cir. 1985).
cites § 6502 1×cited by 95 cases
Where it cites § 6502
“The writ of habeas corpus lies for any unlawful detention, 42 Pa. Cons.Stat.Ann. §§ 6502, *1093 6503 (Purdon 1982), except where relief is available under the PCHA.”
The case’s holding
A federal court may apply the Pullman abstention doctrine when an unsettled question of state law might resolve the case and obviate the need for constitutional adjudication.
Later courts cite it for
“legitimate concerns about federal-state relations” · 3 citing courts
11
GREENBrown v. Dep't of Corr., 601 A.2d 1345 (Pa. Commw. Ct. 1992).
cites § 6502 1×cited by 9 cases
Where it cites § 6502
“42 Pa.C.S. § 6502; Pa.R.Crim.P. 1701(a). The record reveals that Lucas’ sentence was entered by the Court of Common Pleas of Lehigh County.”
12
GREENCommonwealth v. Wyatt, 115 A.3d 876 (Pa. Super. Ct. 2015).
cites § 6502 1×cited by 43 cases
Where it cites § 6502
“He filed an "Amended Petition for Writ of Habeas Corpus Pursuant to 42 Pa.C.S. § 6502, and Article I, § 14 of the Pennsylvania Constitution," which the clerk of quarter sessions received on December 10, 2010, and docketed on February 11, 2011.”
Later courts cite it for
“if the pcra offers a remedy for an appellant's claim, it is the sole avenue of relief and the pcra time limitations apply.” · 2 citing courts
13
GREENCommonwealth v. Vartan, 674 A.2d 1156 (Pa. Commw. Ct. 1996).
cites § 6502 1×cited by 5 cases
Where it cites § 6502
“[[Image here]] Any person who refuses to obey such subpoena, or who refuses to be sworn to testify, or who fails to produce any papers, books or documents touching upon the case in which he is subpoenaed, or who is guilty of any contempt after summoned to appear, may be punished…”
14
NEUTRALCommonwealth ex rel. Roth v. Kozakiewicz, 485 A.2d 843 (Pa. Commw. Ct. 1984).
cites § 6502 1×subsections: (a)cited by 4 cases
Where it cites § 6502
“This court promptly issued to the warden having custody of the defendant, not .”
15
NO FLAGF.A. Cook v. M. Garman, 274 A.3d 780 (Pa. Commw. Ct. 2022).
cites § 6502 2×subsections: (a)cited by 0 casesunpublished
Where it cites § 6502
“Relator requests that he be released from incarceration and placed on home detention until a vaccine is available or until he is parole- eligible.”
16
NO FLAGS. Sharp v. K. Ransom, 338 A.3d 1040 (Pa. Commw. Ct. 2025).
cites § 6502 2×subsections: (a)cited by 0 casesunpublished
Where it cites § 6502
“Sections 6502 and 6503 of the Judicial Code, 42 Pa.C.S. §§ 6502 and 6503. Section 6502(a) provides: “Any judge of a court of record may issue the writ of habeas corpus to inquire into the cause of detention of any person or for any other lawful purpose.”
17
NO FLAGE. Smith v. PBPP & the PA DOC, No. 322 M.D. 2023 (Pa. Commw. Ct. Dec. 9, 2025).
cites § 6502 2×subsections: (a)cited by 0 cases
Where it cites § 6502
“42 Pa.C.S. § 6502;9 42 Pa.C.S. § 5301(a).”
18
NO FLAGEverett v. Wenerowicz, 27 Pa. D. & C.5th 491 (Pa. Ct. Com. Pl. 2013).
cites § 6502 2×subsections: (a)cited by 0 cases
Where it cites § 6502
“8 Pursuant to 42 Pa. C.S. § 6502, “[a]ny judge of a court of record may issue the writ of habeas corpus to inquire into the cause of detention of any person or for any other lawful purpose.”
19
NO FLAGG. Tucker v. J.E. Wetzel, No. 439 M.D. 2015 (Pa. Commw. Ct. Oct. 26, 2016).
cites § 6502 1×cited by 0 casesunpublished
Where it cites § 6502
“” 42 Pa. C.S. §6502. Section 6503 of the Judicial Code states as follows: (a) General rule.”
20
NO FLAGCom. ex rel. T. Connelly v. R. Gilmore (Pa. Commw. Ct. 2017).
cites § 6502 1×cited by 0 casesunpublished
Where it cites § 6502
“” 42 Pa.C.S. §6502. Thereafter, “[t]he writ, if issued, directs the restraining authority to produce the person and state the ‘true cause of the detention.”

Show all 38 citing cases (list view) →

The flag is Syfertize’s treatment of the citing case itself, not of the statute. “Where it cites” is the passage in the opinion; the holding is a summary of the whole case and may concern another point. Annotations are extracted automatically from the opinions in the Syfert caselaw corpus.

Citing cases by year
198320042025

One bar per year. Tallest: 4 cases in 2021. These are opinions in the Syfert collection, which holds more of some courts’ recent opinions than their older ones, so a rise can reflect what the collection holds and not more litigation.

By court
Pa. Commw. Ct.14Pa. Super. Ct.13Pa.4M.D. Penn.43rd Cir.1Pa. Ct. Com. Pl.1Pa. Ct. Com. Pl.1
By subsection
(a)11 cases
Coady v. Vaughn, 770 A.2d 287 (Pa. 2001).“See 42 Pa.C.S. § 6502(a). Indeed, there was no issue in Rogers concerning the availability of state habeas corpus review.”
Commonwealth v. Isabell, 467 A.2d 1287 (Pa. 1983).“In the instant case, the judge who imposed the sentence, Judge Durham, has not had the opportunity to consider appellant's claim because it was raised for the first time on appeal. That judge *11 is best qualified to initially resolve any disputes regarding the interpretation of…”
Commonwealth v. Carbo, 822 A.2d 60 (Pa. Super. Ct. 2003).“¶ 4 The March 1, 2001, order of Judge Rossanese from which the Commonwealth took the instant appeal, was not an order entered by an "issuing authority", but rather was an order entered by a commissioned judge of the Court of Common Pleas after a hearing on a writ of habeas…”
Kester v. Pennsylvania Bd. of Prob. & Parole, 609 A.2d 622 (Pa. Commw. Ct. 1992).“1984) (ancillary jurisdiction is a tool by which a federal district court acquires jurisdiction of all facets of a case properly in a federal court because a portion of the issues presented confer federal jurisdiction).”
Commonwealth ex rel. Roth v. Kozakiewicz, 485 A.2d 843 (Pa. Commw. Ct. 1984).“This court promptly issued to the warden having custody of the defendant, not .”
Showing the top 5 of 11. More in the list view →
(b)2 cases
Harvey, N. v. Bohenski, J., 341 A.3d 128 (Pa. Super. Ct. 2025).

Show all 38 citing cases (list view) →

Enactment and amendments

Syfert holds no separate history line for this section. Where this code prints a source or history note, it appears with the text, usually at the end.

Versions

Edition shown: laws through the 2026 session (checked Sept. 2026). Syfert holds no earlier or later version of this section.

Pennsylvania Consolidated Statutes Home  |  Search Pennsylvania  |  Search cases for this section  |  syfert.com