HTTP 451: the status code that thanks Ray Bradbury
RFC 7725, February 2016, defines 451 Unavailable For Legal Reasons: the server denies access to a resource as a consequence of a legal demand. Guess first.
Check yourself
- Which status code did people use before, and why was it not enough?
- Who gets thanked at the end of the RFC?
- How does a blocking entity identify itself?
- Does a 451 mean the resource exists?
- Is a 451 response cacheable by default?
Answers
- 403. Terence Eden observed that it was not really suitable and suggested a new code.
- Ray Bradbury, author of the novel that gave the number its fame: “Thanks also to Ray Bradbury.”
- A Link header with rel="blocked-by", pointing to the entity actually implementing the block, which may be an ISP or a cache, not the origin server.
- No. 451 implies neither the existence nor nonexistence of the resource.
- Yes, unless the method or explicit cache controls say otherwise. The RFC's own example is set in the Roman Province of Judea.
Example
Illustrative example only. A health check calls one URL from 5 regions: 4 return 200, 1 returns 451 with a blocked-by link. That is 1 of 5, or 20% of probes, and the fix is not in your code: record the region, the time and the Link value.
⚠️ Important
Clients cannot rely upon the use of the 451 status code: a block may also arrive as a 403, a timeout or a DNS failure. Treat 451 as a signal to log, not as the only one.
When a 451 shows up
- ☐ Save the full response headers
- ☐ Note the region and time of the probe
- ☐ Copy the blocked-by link, if present
- ☐ Write it up the same day
Incident report, ready: region, time, headers and who was told 👇
Source: RFC 7725, “An HTTP Status Code to Report Legal Obstacles”, T. Bray, February 2016.