Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›HTTP Status Codes Reference›HTTP 451 Unavailable For Legal Reasons
4xx Client Error

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 code451
NameUnavailable For Legal Reasons
Class4xx Client Error
Defined inRFC 7725
Cacheable by defaultNo, unless Cache-Control says so
Safe to retry automatically?No: change the request first
Related headersLink: <...>; 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?

  1. 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.

Frequently asked questions

Why is it called 451?
It refers to Ray Bradbury’s novel Fahrenheit 451, about book censorship.
451 vs 403?
451 explicitly says the block is for legal reasons. 403 is a general refusal.
Is 451 a client or server error?
451 is in the 4xx class, so it is classed as a client error: the request needs to change before it can succeed.