> 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).

# 3 Pa.C.S. § 317 — Attorney fees and costs.

- **Citation**: 3 Pa.C.S. § 317
- **Node Type**: section
- **Jurisdiction**: Pennsylvania (state)
- **Code Body**: Pennsylvania Consolidated Statutes (Aug. 2026 snapshot) (Pa.C.S.)
- **Official Source**: [https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=03](https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=03)
- **Canonical URL**: [https://corpuslaw.us/codes/pennsylvania/title-3/chapter-3/section-317](https://corpuslaw.us/codes/pennsylvania/title-3/chapter-3/section-317)
- **Semantic URL**: [https://corpuslaw.us/codes/pennsylvania/title-3/chapter-3/section-317](https://corpuslaw.us/codes/pennsylvania/title-3/chapter-3/section-317)

## Hierarchy

Title 3 > Chapter 3

## Text

In an action brought under section 315(b) (relating to right of action), the court may do any of the following:

(1) If the court determines that the local government unit enacted or enforced an unauthorized local ordinance with negligent disregard of the limitation of authority established under State law, it may order the local government unit to pay the plaintiff reasonable attorney fees and other litigation costs incurred by the plaintiff in connection with the action.

(2) If the court determines that the action brought by the plaintiff was frivolous or was brought without substantial justification in claiming that the local ordinance in question was unauthorized, it may order the plaintiff to pay the local government unit reasonable attorney fees and other litigation costs incurred by the local government unit in defending the action.
