HTTP 410 Gone vs 415 Unsupported Media Type
Both HTTP 410 (Gone) and 415 (Unsupported Media Type) belong to the 4xx Client Error category. 410 indicates that the resource is permanently gone and will not be available again. Unlike 404, this is intentional and permanent. Meanwhile, 415 means that the server refuses to accept the request because the Content-Type is not supported.
Description
The resource is permanently gone and will not be available again. Unlike 404, this is intentional and permanent.
When You See It
When a resource has been deliberately removed and should be de-indexed by search engines.
How to Fix
Remove references to this URL. Search engines will de-index the page.
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.
Key Differences
HTTP 410: The resource is permanently gone and will not be available again. Unlike 404, this is intentional and permanent.
HTTP 415: The server refuses to accept the request because the Content-Type is not supported.
You encounter 410 when when a resource has been deliberately removed and should be de-indexed by search engines.
You encounter 415 when when sending JSON to an endpoint that only accepts XML, or missing the Content-Type header.
When to Use Which
For 410 (Gone): Remove references to this URL. Search engines will de-index the page. For 415 (Unsupported Media Type): Set the correct Content-Type header matching the data format you're sending.