HTTP 451 Unavailable For Legal Reasons
HTTP 451 Unavailable For Legal Reasons means the server cannot provide the resource because of a legal demand, such as a court order, government censorship…
Quick answer
HTTP 451 Unavailable For Legal Reasons means the server cannot provide the resource because of a legal demand, such as a court order, government censorship or a copyright takedown. The number references the novel Fahrenheit 451.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 451 Unavailable For Legal Reasons mean?
The response should explain the legal reason, and a Link header with rel="blocked-by" can identify who is blocking access. Some sites use 451 to block whole regions, for example when they do not comply with a local law.
| Status code | 451 |
|---|---|
| Name | Unavailable For Legal Reasons |
| Class | 4xx Client Error |
| Defined in | RFC 7725 |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | No: change the request first |
| Related headers | Link: <...>; rel="blocked-by" |
What causes HTTP 451?
- A court order or DMCA takedown.
- Geo-blocking to comply with regional laws.
How do I fix HTTP 451?
- Explain the reason in the response body and include a Link rel="blocked-by" header where possible.
What should a client do after HTTP 451?
Do not retry; access is legally restricted.
Does HTTP 451 affect SEO?
Pages returning 451 are removed from the index for affected regions, like other 4xx pages.
Example 451 response
HTTP/1.1 451 Unavailable For Legal Reasons
Date: Mon, 01 Dec 2026 12:00:00 GMT
Link: <https://example.org/legal-notice>; rel="blocked-by"
Content-Type: application/json
{"error":{"status":451,"message":"Unavailable For Legal Reasons"}} How to return 451 Unavailable For Legal Reasons in code
Express (Node.js)
res.status(451).json({ error: 'Unavailable For Legal Reasons' }); Next.js route handler
return Response.json({ error: 'Unavailable For Legal Reasons' }, { status: 451 }); FastAPI (Python)
raise HTTPException(status_code=451, detail="Unavailable For Legal Reasons") PHP
http_response_code(451); Nginx
location = /example {
return 451;
} Other 4xx status codes
The request contains an error or cannot be fulfilled as sent. Fix the request before retrying.
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Content Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 I'm a teapot
- 421 Misdirected Request
- 422 Unprocessable Content
- 423 Locked
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 499 Client Closed Request
Frequently asked questions
Why is it called 451?
451 vs 403?
Is 451 a client or server error?
Related
- 403 Forbidden HTTP 403 Forbidden means the server understood the request but refuses to allow it.
- 410 Gone HTTP 410 Gone means the resource used to exist but has been permanently removed and will not come back, with n.
- 404 Not Found HTTP 404 Not Found means the server cannot find anything at the requested URL.
- Open the HTTP Status Codes Reference → Free, no signup.