HTTP

HTTP 300 Multiple Choices vs 409 Conflict

HTTP 300 (Multiple Choices) is a 3xx Redirection response, while 409 (Conflict) 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, 409 means that the request conflicts with the current state of the server. Often due to concurrent modification or business rule violations.

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 request conflicts with the current state of the server. Often due to concurrent modification or business rule violations.

When You See It

When trying to create a resource that already exists, or updating a resource that was modified by another request.

How to Fix

Refresh the resource state, resolve conflicts, and retry. Use ETags for optimistic concurrency.

Key Differences

1.

300 is a 3xx Redirection response, while 409 is a 4xx Client Error response.

2.

HTTP 300: The request has more than one possible response. The client should choose one of them.

3.

HTTP 409: The request conflicts with the current state of the server. Often due to concurrent modification or business rule violations.

4.

You encounter 300 when when a resource is available in multiple formats (e.g., different languages or media types).

5.

You encounter 409 when when trying to create a resource that already exists, or updating a resource that was modified by another request.

When to Use Which

For 300 (Multiple Choices): Select the appropriate resource variant. Send an Accept header with your preferred content type. For 409 (Conflict): Refresh the resource state, resolve conflicts, and retry. Use ETags for optimistic concurrency.

Learn More