226 IM Used is an HTTP success status code indicating that the server has fulfilled a request using instance manipulations. It is mainly associated with Delta Encoding, where the response represents a modification of a previously retrieved resource.
When a client supports delta encoding, it may request only the changes since a previous version of a resource. If the server responds with status code 226, it means:
200 OK response
// Node.js example sending HTTP 226 IM Used response
const http = require("http");
http.createServer((req, res) => {
res.writeHead(226, {
"Content-Type": "text/plain",
"IM": "vcdiff"
});
res.end("Delta changes applied to cached resource");
}).listen(3000);
The client receives a 226 IM Used status along with delta data. The client applies this delta to the cached resource to reconstruct the latest version efficiently.
Simulate how a "Delta" response updates a cached file.
3. Final Reconstructed Resource:
✅ Status: 226 IM Used. The delta was successfully merged with the cache.
200 OK if delta cannot be applied