HTTP

HTTP 226 IM Used vs 409 Conflict

HTTP 226 (IM Used) is a 2xx Success response, while 409 (Conflict) is a 4xx Client Error response. 226 indicates that the server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations. 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 server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations.

When You See It

When using delta encoding to reduce bandwidth.

How to Fix

Rarely encountered. The response uses Instance Manipulations (IM) as specified.

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.

226 is a 2xx Success response, while 409 is a 4xx Client Error response.

2.

HTTP 226: The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations.

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 226 when when using delta encoding to reduce bandwidth.

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 226 (IM Used): Rarely encountered. The response uses Instance Manipulations (IM) as specified. For 409 (Conflict): Refresh the resource state, resolve conflicts, and retry. Use ETags for optimistic concurrency.

Learn More