HTTP 415 Unsupported Media Type vs 451 Unavailable For Legal Reasons
Both HTTP 415 (Unsupported Media Type) and 451 (Unavailable For Legal Reasons) belong to the 4xx Client Error category. 415 indicates that the server refuses to accept the request because the Content-Type is not supported. Meanwhile, 451 means that the server is denying access to the resource as a consequence of a legal demand. Named after Ray Bradbury's Fahrenheit 451.
Description
The server refuses to accept the request because the Content-Type is not supported.
When You See It
When sending JSON to an endpoint that only accepts XML, or missing the Content-Type header.
How to Fix
Set the correct Content-Type header matching the data format you're sending.
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.
Key Differences
HTTP 415: The server refuses to accept the request because the Content-Type is not supported.
HTTP 451: The server is denying access to the resource as a consequence of a legal demand. Named after Ray Bradbury's Fahrenheit 451.
You encounter 415 when when sending JSON to an endpoint that only accepts XML, or missing the Content-Type header.
You encounter 451 when when content is blocked due to court orders, GDPR requests, or government censorship.
When to Use Which
For 415 (Unsupported Media Type): Set the correct Content-Type header matching the data format you're sending. For 451 (Unavailable For Legal Reasons): No technical fix. The block is legally mandated. Contact the site operator for details.