What 451 means
The server won’t provide the resource because of a legal demand, such as a court order, a government block or a takedown notice. The number is a nod to the novel Fahrenheit 451.
When servers send it
When content is blocked in a country or removed after a legal request. Under RFC 7725 the response should explain the demand and, where possible, who made it.
Common causes
- A court order or government blocking instruction.
- A copyright or data protection takedown.
- A site choosing not to serve some countries because of local law.
How to fix it as a developer
- Explain the legal demand in the body, and who made it, where you’re allowed to.
- Add a
Linkheader withrel="blocked-by"identifying who is doing the blocking, as RFC 7725 asks. - Use 451 rather than 403 or 404 so researchers and users can tell legal blocks apart from other errors.
How to fix it as a visitor
- The content isn’t available where you are, for legal reasons. The page may say why.
Related codes
- 403 Forbidden: The server understood who you are and won’t let you do this.
- 404 Not Found: There’s nothing at this URL, or the server won’t say whether there is.
- 410 Gone: This used to exist and has been removed on purpose, for good.
Where it’s defined
451 Unavailable For Legal Reasons is defined in RFC 7725, section 3. It’s a 4xx code, the client error class: something is wrong with the request, so sending it again unchanged won’t help.
Other 4xx codes
400 Bad Request · 401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 405 Method Not Allowed · 406 Not Acceptable · 408 Request Timeout · 409 Conflict · 410 Gone · 413 Content Too Large · 414 URI Too Long · 415 Unsupported Media Type · 418 I’m a teapot · 422 Unprocessable Content · 429 Too Many Requests · 431 Request Header Fields Too Large · 499 Client Closed Request
Or search them all in the HTTP status code list.