> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# KRS 503.040 — Execution of public duty

- **Citation**: KRS 503.040
- **Node Type**: section
- **Jurisdiction**: Kentucky (state)
- **Code Body**: Kentucky Revised Statutes (through the 2026 Regular Session) (KRS)
- **Official Source**: [https://apps.legislature.ky.gov/law/statutes/statute.aspx?id=19668](https://apps.legislature.ky.gov/law/statutes/statute.aspx?id=19668)
- **Canonical URL**: [https://corpuslaw.us/codes/kentucky/title-l/chapter-503/section-503-040](https://corpuslaw.us/codes/kentucky/title-l/chapter-503/section-503-040)
- **Semantic URL**: [https://corpuslaw.us/codes/kentucky/title-l/chapter-503/section-503-040](https://corpuslaw.us/codes/kentucky/title-l/chapter-503/section-503-040)

## Hierarchy

Title L — KENTUCKY PENAL CODE > Chapter 503 — GENERAL PRINCIPLES OF JUSTIFICATION

## Text

503.040. Execution of public duty

(1) Unless inconsistent with the ensuing sections of this code defining justifiable use of physical force or with some other provisions of law, conduct which would otherwise constitute an offense is justifiable when it is required or authorized by a provision of law imposing a public duty or by a judicial decree.

(2) The justification afforded by subsection (1) applies when:

(a) The defendant 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; or

(b) The defendant 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.

Effective: January 1, 1975

History: 1974 Ky. Acts ch. 406, sec. 29, effective January 1, 1975.
