HTTP 451 Unavailable For Legal Reasons vs 502 Bad Gateway
HTTP 451 (Unavailable For Legal Reasons) is a 4xx Client Error response, while 502 (Bad Gateway) is a 5xx Server Error response. 451 indicates that the server is denying access to the resource as a consequence of a legal demand. Named after Ray Bradbury's Fahrenheit 451. In contrast, 502 means that the server, acting as a gateway or proxy, received an invalid response from the upstream server.
Description
The server is denying access to the resource as a consequence of a legal demand. Named after Ray Bradbury's Fahrenheit 451.
When You See It
When content is blocked due to court orders, GDPR requests, or government censorship.
How to Fix
No technical fix. The block is legally mandated. Contact the site operator for details.
Description
The server, acting as a gateway or proxy, received an invalid response from the upstream server.
When You See It
When Nginx/Apache can't reach the application server (e.g., Gunicorn is down, upstream timeout).
How to Fix
Check if the upstream server is running. Verify proxy configuration. Check for upstream timeouts.
Key Differences
451 is a 4xx Client Error response, while 502 is a 5xx Server Error response.
HTTP 451: The server is denying access to the resource as a consequence of a legal demand. Named after Ray Bradbury's Fahrenheit 451.
HTTP 502: The server, acting as a gateway or proxy, received an invalid response from the upstream server.
You encounter 451 when when content is blocked due to court orders, GDPR requests, or government censorship.
You encounter 502 when when Nginx/Apache can't reach the application server (e.g., Gunicorn is down, upstream timeout).
When to Use Which
For 451 (Unavailable For Legal Reasons): No technical fix. The block is legally mandated. Contact the site operator for details. For 502 (Bad Gateway): Check if the upstream server is running. Verify proxy configuration. Check for upstream timeouts.