Creative agency glossaryWeb, UX/UI, and Design

451 Unavailable for Legal Reasons

A 451 Unavailable for Legal Reasons is the HTTP status code a server returns when it is refusing to show a page because a law, a court order or a government demand says it cannot.

What is a 451 Unavailable for Legal Reasons error?

Most HTTP error codes describe a technical failure. A 404 means the page does not exist, a 403 means access is refused, a 500 means the server broke. A 451 is different: the page exists, the server is working, and it is choosing not to serve the content because it has been legally required not to. The number is a reference to Ray Bradbury's novel about book burning, and the code was proposed for exactly that reason, to make censorship visible rather than disguised as a technical fault.

The code was standardized in 2016. The specification suggests that a 451 response should explain itself, ideally with a header that identifies who demanded the block, so that the person who hit the wall knows why, and so that researchers who track censorship can count it.

In practice it appears in a few situations. Content blocked in a particular country by court order or regulation. Pages removed after a copyright or defamation ruling. Services that decided not to serve visitors from a region whose privacy law they chose not to comply with, which is how many American news sites greeted European visitors when the GDPR took effect in 2018. Sanctions compliance. In each case the message is the same: this is not broken, it is forbidden.

Why it matters

Why a 451 error matters

The code exists for honesty. A visitor who meets a 403 does not know whether they are blocked by a firewall, a mistake or a lawyer. A 451 tells them, and it tells the search engines and the researchers too. For a brand, using it correctly is a small act of transparency with a large reputational upside: it says we would show you this if we could, rather than pretending the page never existed.

It also matters for the record. Organizations that monitor internet freedom look for 451 responses as evidence of where and how content is being blocked, and a site that uses the code properly contributes to that picture. A site that hides legal blocks behind generic errors makes censorship harder to see, which is the opposite of what the code was designed for.

For search, a 451 behaves like other client errors. A page that returns it to a crawler in a region will drop out of results there, which is usually the intended effect. It does not affect how the page ranks where it is still available.

In practice

How a 451 error works in practice

  1. 01

    The block is normally implemented at the edge, in the web server, the content delivery network or the application, with a rule that matches a path, a country or both. The server returns the 451 status, a header pointing to the entity that required the block where that is known, and a page written for a human: what is unavailable, why, and where to go instead. The event is logged, because a legal block is the kind of thing a company should be able to account for later.

  2. 02

    The decision to use it is a legal one before it is a technical one. Counsel determines that content must be withheld in a jurisdiction; the technical team implements the block; the content team writes the page. A 451 is not the right tool for commercial restrictions such as licensing windows or regional pricing, which are business choices rather than legal demands and are usually handled with a plain explanation and a 403 or a redirect.

Watch out

What people get wrong about 451 errors

Using a 403 or a 404 when the reason is legal, which leaves visitors guessing and hides the block from everyone who might care. Using a 451 for commercial geo-restrictions, which stretches the code to cover decisions nobody required. Serving a bare status line instead of a page, so the one honest error on the web looks like a crash. Leaving out the header that identifies the blocking authority, when the whole point was accountability. And assuming the code is exotic, when any brand that publishes across borders may need it the day a ruling arrives.

The deeper misunderstanding is treating it as a developer's concern. A 451 is a statement about the law and the brand's relationship with its audience, and the words on the page should be written by someone who understands both.

Questions

People also ask

When should a website use a 451 instead of a 403?

When the content is being withheld because of a legal demand, such as a court order, a regulation or a government request. A 403 says access is refused and gives no reason; a 451 says the reason is legal. If a lawyer made the decision, 451 is the honest code.

Does a 451 error affect SEO?

In the region where it is served, the page will drop out of search results, which is normally the intended outcome of a legal block. Where the page is still available it is unaffected. Search engines treat 451 as a client error like any other.

Who decides to serve a 451?

Legal counsel, in response to a court order, a regulatory requirement or a government demand. The technical team implements the block and the content team writes the page, but the decision itself is a legal one, and it should be documented.

Why is the code numbered 451?

It refers to Ray Bradbury's novel about a society that burns books. The code's author chose the number to make the point that blocking content for legal reasons should be visible and named rather than hidden behind a generic error.

Next to it in the glossary

  1. 400 Bad RequestA 400 Bad Request is the HTTP status code a server returns when it cannot understand the request it was sent, usually because the request itself was malformed.
  2. Above the FoldAbove the fold is the part of a web page that is visible before anyone scrolls: the first screen a visitor gets, and the one that decides whether they stay.
  3. Back-End DevelopmentBack-end development is the building of the server-side systems, databases and logic that run behind a website or app and make everything on the screen work.
  4. Below the FoldBelow the fold is the part of a web page a visitor only sees after scrolling, a term borrowed from newspapers, where the lower half of the front page is hidden when the paper lies folded on the stand.
  5. Content Delivery Network (CDN)A content delivery network (CDN) is a set of servers spread around the world that stores copies of a website's files and serves each visitor from the one nearest to them.
  6. Custom FieldA custom field is an extra piece of structured data attached to a page, post or product in a content management system, beyond the standard title, body and image.

Every Web, UX/UI, and Design term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage