HTTP 451 Unavailable For Legal Reasons
4xx Client Error
- Home
- HTTP Status Codes
- 4xx
- 451
What is HTTP 451 Unavailable For Legal Reasons?
The 451 (Unavailable For Legal Reasons) status code indicates that the server is denying access to the resource as a consequence of a legal demand. The response should include an explanation in the body citing the legal demand. The number 451 is a reference to Ray Bradbury's novel Fahrenheit 451.
Common Use Cases
- Content blocked by government censorship
- Copyright infringement takedown (DMCA)
- Content blocked by court order
Usage Example
When a DMCA takedown notice is received for copyrighted content, replace the content page with a 451 response. Include a brief explanation citing the legal demand and links to resources about the takedown. This transparency helps users understand why content is unavailable.
// Laravel - returning 451 for legally-restricted content
return response()->json([
'error' => 'Unavailable For Legal Reasons',
'message' => 'This content has been removed due to a DMCA takedown notice.',
'reference' => 'https://lumendatabase.org/notice/12345',
], 451);
Related Status Codes
Common Mistakes
Mistake: Using 403 or 404 instead of 451 for legal blocks
Fix: When content is specifically blocked due to a legal demand, use 451 to be transparent. Using 403 or 404 hides the reason and undermines transparency about government and legal content takedowns.
Mistake: Omitting the explanation of the legal demand in 451 responses
Fix: The RFC recommends including information about the legal demand in the response body. Provide a clear explanation and reference to the relevant legal request or court order when possible.