HTTP 300 Multiple Choices vs 415 Unsupported Media Type
HTTP 300 (Multiple Choices) is a 3xx Redirection response, while 415 (Unsupported Media Type) is a 4xx Client Error response. 300 indicates that the request has more than one possible response. The client should choose one of them. In contrast, 415 means that the server refuses to accept the request because the Content-Type is not supported.
Description
The request has more than one possible response. The client should choose one of them.
When You See It
When a resource is available in multiple formats (e.g., different languages or media types).
How to Fix
Select the appropriate resource variant. Send an Accept header with your preferred content type.
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
300 is a 3xx Redirection response, while 415 is a 4xx Client Error response.
HTTP 300: The request has more than one possible response. The client should choose one of them.
HTTP 415: The server refuses to accept the request because the Content-Type is not supported.
You encounter 300 when when a resource is available in multiple formats (e.g., different languages or media types).
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 300 (Multiple Choices): Select the appropriate resource variant. Send an Accept header with your preferred content type. For 415 (Unsupported Media Type): Set the correct Content-Type header matching the data format you're sending.