HTTP Error Code 451
The server refuses to serve the resource for legal reasons.
The server refuses to serve the resource for legal reasons.
| Code | 451 |
| Product | HTTP |
| Company / origin | IETF / IANA · International standard |
| Category | Protocols & Standards |
| Platform / versions | HTTP/1.1, HTTP/2, HTTP/3 · All HTTP versions |
| Severity | warning |
| Official source | RFC 7725: Unavailable For Legal Reasons ↗ |
| Last verified | 2026-11-10 |
What does HTTP error 451 mean?
HTTP 451 is defined by RFC 7725 for cases where a server is prevented by law from serving a resource. It is not a generic block: the restriction should come from a legal demand, regulation, or enforced policy, and the response may link to the demand or explain who to contact.
Common causes
- A court order, takedown notice, or other legal demand requires the content to be withheld.
- Export controls, sanctions, or regional regulations prohibit serving the resource in this location.
- An operator policy enforces a legal restriction and returns 451 instead of a generic 403.
How to fix it
- Step 1
Read the response body and any Link header for the legal contact or demand reference.
- Step 2
Do not try to bypass the restriction; route the request to the service's legal or compliance contact.
- Step 3
Use 403 for ordinary policy blocks and reserve 451 for restrictions that are actually legal in nature.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
400 | Bad Request | The server cannot process the request because the syntax or parameters are invalid. |
401 | Unauthorized | Authentication is missing, expired, or invalid. |
403 | Forbidden | The server understood the request but refuses to authorize it. |
404 | Not Found | The requested resource does not exist at this URL. |
405 | Method Not Allowed | The HTTP method is not allowed for this resource. |
Source & verification
This page was checked against RFC 7725: Unavailable For Legal Reasons on 2026-11-10. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with IETF / IANA. Always confirm destructive or security-sensitive steps with the official documentation.