Unavailable For Legal Reasons
The user requested a resource that cannot legally be provided.
What it means
The HTTP 451 Unavailable For Legal Reasons client error response code indicates that the user requested a resource that cannot legally be provided, such as a web page censored by a government.
The number 451 is a reference to Ray Bradbury's dystopian novel *Fahrenheit 451*, where books are outlawed.
How it works
- 1A user requests a video on a streaming site.
- 2The server detects the user's IP is from a country where that video was legally blocked by court order.
- 3The server returns 451.
Why you're seeing this
- • Government censorship.
- • Copyright infringement (DMCA).
- • Court orders.
How to fix it
- • From a client perspective, there is no fix (other than using a VPN to change jurisdictions).
Framework Implementations
Express.js
app.get('/book', (req, res) => {
if (req.country === 'EU') {
return res.status(451).send('Unavailable for legal reasons');
}
});Real-Life Scenarios
Use this when you are forced by a legal entity (DMCA takedown, court order, government censorship) to remove or block access to a resource.
GDPR Geoblocking
A US-based news site does not want to comply with the EU's GDPR. If an EU IP address visits the site, the site returns a 451, refusing to serve the content.
DMCA Takedown
A code snippet on GitHub is taken down due to a copyright strike. Visiting the URL returns a 451.
HTTP Transaction
1. Client Request
GET /pirated-movie HTTP/1.1
2. Server Response
HTTP/1.1 451 Unavailable For Legal Reasons Link: <https://copyright.gov/takedown>; rel="blocked-by" Content-Type: text/html <h1>Blocked due to DMCA takedown</h1>
SEO Implications
Search engines will de-index the content and may flag it as removed due to legal complaints (e.g., Google's DMCA transparency reports).