HTTP 300 Multiple Choices vs 406 Not Acceptable
HTTP 300 (Multiple Choices) is a 3xx Redirection response, while 406 (Not Acceptable) 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, 406 means that the server cannot produce a response matching the Accept headers sent by the client.
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 cannot produce a response matching the Accept headers sent by the client.
When You See It
When requesting a content type the server doesn't support (e.g., Accept: application/xml when only JSON is available).
How to Fix
Adjust the Accept header to a format the server supports.
Key Differences
300 is a 3xx Redirection response, while 406 is a 4xx Client Error response.
HTTP 300: The request has more than one possible response. The client should choose one of them.
HTTP 406: The server cannot produce a response matching the Accept headers sent by the client.
You encounter 300 when when a resource is available in multiple formats (e.g., different languages or media types).
You encounter 406 when when requesting a content type the server doesn't support (e.g., Accept: application/xml when only JSON is available).
When to Use Which
For 300 (Multiple Choices): Select the appropriate resource variant. Send an Accept header with your preferred content type. For 406 (Not Acceptable): Adjust the Accept header to a format the server supports.