HTTP · Unavailable For Legal Reasons

HTTP Error Code 451

The server refuses to serve the resource for legal reasons.

warningLast verified 2026-11-10RFC 7725: Unavailable For Legal Reasons
Quick answer

The server refuses to serve the resource for legal reasons.

Code451
ProductHTTP
Company / originIETF / IANA · International standard
CategoryProtocols & Standards
Platform / versionsHTTP/1.1, HTTP/2, HTTP/3 · All HTTP versions
Severitywarning
Official sourceRFC 7725: Unavailable For Legal Reasons ↗
Last verified2026-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

  1. Step 1

    Read the response body and any Link header for the legal contact or demand reference.

  2. Step 2

    Do not try to bypass the restriction; route the request to the service's legal or compliance contact.

  3. Step 3

    Use 403 for ordinary policy blocks and reserve 451 for restrictions that are actually legal in nature.

When to escalate

Before you escalate: If the same status persists after you have checked the request, the server logs, and the upstream service, contact the API or hosting provider with the full response headers, request ID, timestamp, and a minimal reproduction.

Related codes

CodeNameWhat it means
400Bad RequestThe server cannot process the request because the syntax or parameters are invalid.
401UnauthorizedAuthentication is missing, expired, or invalid.
403ForbiddenThe server understood the request but refuses to authorize it.
404Not FoundThe requested resource does not exist at this URL.
405Method Not AllowedThe 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.