Pennsylvania § 504 - Execution of public duty.

Full text of Pennsylvania Pennsylvania Consolidated Statutes § 504 — Execution of public duty., with citation guidance and answers to common questions.

§ 504. Execution of public duty.

(a) General rule.--Except as provided in subsection (b) of this section, conduct is justifiable when it is required or authorized by any law of the following:

(1) The law defining the duties or functions of a public officer or the assistance to be rendered to such officer in the performance of his duties.

(2) The law governing the execution of legal process.

(3) The judgment or order of a competent court or tribunal.

(4) The law governing the armed services or the lawful conduct of war.

(5) Any other provision of law imposing a public duty.

(b) Exceptions.--The other sections of this chapter apply to:

(1) The use of force upon or toward the person of another for any of the purposes dealt with in such sections.

(2) The use of deadly force for any purpose, unless the use of such force is otherwise expressly authorized by law or occurs in the lawful conduct of war.

(c) Requisite state of mind.--The justification afforded by subsection (a) of this section applies:

(1) when the actor believes his conduct to be required or authorized by the judgment or direction of a competent court or tribunal or in the lawful execution of legal process, notwithstanding lack of jurisdiction of the court or defect in the legal process; and

(2) when the actor believes his conduct to be required or authorized to assist a public officer in the performance of his duties, notwithstanding that the officer exceeded his legal authority.

Source: official Pennsylvania text · Last verified 2026-08-27

Frequently Asked Questions About Pennsylvania § 504

What does Pennsylvania Consolidated Statutes § 504 cover?

Section 504 ("Execution of public duty.") is part of the Pennsylvania Consolidated Statutes, the codified statutory law of Pennsylvania. It sets out the legal rule or procedure described in the text above. Statutes are amended regularly, so always verify against the official source.

How do I cite Pennsylvania § 504?

A common citation format is "Pennsylvania Consolidated Statutes § 504" (Pennsylvania). Legal writing may require the code abbreviation, section number, and year or edition. Match the style required by your court, professor, or publisher.

Is this the official text of Pennsylvania law?

No. This page is for research and education and may not include the most recent amendments. For official current law, check the Pennsylvania official source linked on this page or consult a licensed Pennsylvania attorney.

How does Pennsylvania § 504 apply to my situation?

Statutes are interpreted in context, and application depends on your specific facts. Only a licensed attorney in Pennsylvania can advise on how this section applies to you. Contact your state or local bar association for a referral.

Sources & Verification

Not legal advice. Verify against the official source and consult a licensed attorney in Pennsylvania.