226 IM Used means: The server fulfilled a GET using instance manipulation: the response is a delta (difference) against a version the client already has, rather than the full representation. Part of the obscure RFC 3229 'Delta encoding in HTTP' mechanism. Success 2xx codes confirm the request was received, understood and accepted. The family distinguishes what kind of success happened — content returned, resource created, work queued, or nothing to return — and choosing the precise code is part of a well-designed API contract that clients and caches can rely on. In practice you will meet 226 when a client sends a-im: vcdiff with an if-none-match etag and the server supports delta encoding; an experimental feed-sync protocol transfers only changes since the last fetch; a specialized api reduces bandwidth by sending diffs instead of documents. On the client side, apply the received delta to your cached instance to reconstruct the full representation; verify the resulting ETag. On the server side, only emit 226 when the client advertised A-IM support and you actually produced a delta; include IM and Delta-Base headers.
When 226 happens
- A client sends A-IM: vcdiff with an If-None-Match ETag and the server supports delta encoding
- An experimental feed-sync protocol transfers only changes since the last fetch
- A specialized API reduces bandwidth by sending diffs instead of documents
How to fix it
On the client
Apply the received delta to your cached instance to reconstruct the full representation; verify the resulting ETag.
On the server
Only emit 226 when the client advertised A-IM support and you actually produced a delta; include IM and Delta-Base headers.
Should you retry?
Success — nothing to retry.
Debugging steps
When 226 appears unexpectedly, start by capturing the full exchange: 'curl -i' or the browser DevTools Network tab shows the exact status line and response headers, which often carry the real explanation. Success codes rarely need debugging, but verify the body semantics match the code — a 200 wrapping an error payload is an API design bug, not a transport problem. For this code specifically, check whether the most common trigger applies to your situation: a client sends a-im: vcdiff with an if-none-match etag and the server supports delta encoding. Compare your exchange against the raw HTTP example above. If you operate the server, correlate the timestamp with application and proxy logs using the request id; if you are the client, verify the request shape against the API documentation before changing anything or retrying.
Notes & gotchas
Delta encoding never reached mainstream adoption: no browser implements it, so 226 in the wild almost always means a specialized sync system or a misconfigured experiment.
Examples
HTTP/1.1 226 IM Used
IM: vcdiff
Delta-Base: "etag-v1"
Content-Type: application/json
Content-Length: 75
{
"id": 12345,
"status": "ok",
"message": "IM Used example payload"
} curl -i https://api.example.com/v1/resource # observe the 226 response and its headers const res = await fetch("https://api.example.com/v1/resource");
if (res.ok) {
const data = await res.json(); // 226 IM Used
return data;
} import requests
res = requests.get("https://api.example.com/v1/resource", timeout=10)
res.raise_for_status()
data = res.json() # 226 IM Used Frequently asked questions
Is 226 used by browsers?
No mainstream browser implements RFC 3229 delta encoding; you will only meet it in specialized systems.
How is 226 different from 206?
206 delivers a byte range of the same representation; 226 delivers a computed difference between two versions of a representation.
Which 2xx code should my API return?
200 for a normal result, 201 when a resource was created (with Location), 202 when work is queued, 204 when there is nothing to return. Precision here makes clients, caches and monitors behave correctly.
Can I treat any 2xx as interchangeable success?
For 'did it work' yes, but the distinctions matter operationally: 201 means a resource exists, 202 means work is still pending, 204 means there is no body to parse. Code that ignores them breaks.
Try the JSON Validator
Check JSON syntax and locate errors by line and column.