226 IM Used

When a server applies instance manipulations to a resource before sending the response, the result is delivered with the 226 IM Used status code. The client declares support for specific manipulations via the A-IM request header.

Usage

A 226 IM Used response tells the client the body contains a modified version of the resource rather than the full representation. One common use is delta encoding, where only the differences between the cached version and the current version are transmitted, conserving bandwidth.

The server applies the instance manipulations the client declared support for via the A-IM request header. Accepted manipulations are listed on a single comma-delimited line or across multiple lines.

The unmodified current instance is not always available directly. Reconstructing the full resource requires combining the 226 response with a previously cached base instance, guided by the instance manipulations the server applied.

Compression Dictionary Transport

The same goal, sending only what changed since a version the client already holds, is reached today through Compression Dictionary Transport. A server marks a response as a future dictionary with Use-As-Dictionary, the client announces the dictionary it holds with Available-Dictionary, and the server answers with a 200 whose body is Brotli or Zstandard compressed against that dictionary, signalled through Content-Encoding dcb or dcz. No new status code and no instance-manipulation negotiation are involved, and the mechanism ships in Chromium-based browsers. 226 IM Used remains the reference point for delta encoding in HTTP, while new deployments of delta delivery use dictionaries.

Example

The client starts with an empty cache and requests a PDF file. The Accept-Encoding header signals support for gzip Compression. The server responds with the full gzip-encoded file and a 200 status.

On the next request, the client checks whether the document changed by sending the ETag value from the first response in an If-None-Match header. The client also declares support for vcdiff delta encoding via the A-IM header.

The server detects the resource changed since the original ETag and generates a delta file. An unchanged resource produces a 304 instead. The Delta-Base header in the response identifies which cached version the delta is computed against. The IM header lists the instance manipulations applied.

Request

GET /livingdocs/current_specs.pdf HTTP/1.1
Host: www.example.re
Accept-Encoding: gzip

Response

HTTP/1.1 200 OK
ETag: "1234-000"
Content-Encoding: gzip

<gzip-compressed file>

Request (subsequent)

GET /livingdocs/current_specs.pdf HTTP/1.1
Host: www.example.re
If-None-Match: "1234-000"
Accept-Encoding: gzip
A-IM: vcdiff

Response (delta)

HTTP/1.1 226 IM Used
ETag: "1234-111"
Delta-Base: "1234-000"
Content-Encoding: gzip
IM: vcdiff

<gzip-compressed delta file>

Feed deltas

Syndication feeds gave 226 IM Used its one real deployment. An RSS or Atom feed is a sliding window of recent entries, and a reader polling every half hour downloads the same entries again and again. The feed instance manipulation, proposed by PubSub's Bob Wyman as an informal extension to delta encoding, drops every entry the client has already seen. The delta unit is a whole item or entry rather than a byte range, so the response stays a valid feed and a reader parses the result without any patching step.

The client sends the ETag of its last copy in If-None-Match and lists feed in A-IM. An unchanged feed draws a 304. A changed feed draws a 226 carrying IM: feed, the new ETag, and only the entries added since the base version. Cache-Control: no-store keeps caches unaware of instance manipulations from storing the partial feed, while the im directive lets a delta-aware cache store the response anyway. A server without feed support ignores the header and answers with the full feed and a 200.

Request

GET /atom.xml HTTP/1.1
Host: www.example.re
If-None-Match: "321"
A-IM: feed, gzip

Response

HTTP/1.1 226 IM Used
ETag: "4321"
IM: feed, gzip
Cache-Control: no-store, im
Content-Type: application/atom+xml

<feed containing only the entries added since "321">

Support arrived quickly on both sides. PubSub, Bloglines, FeedDemon, NewzCrawler, RSS Bandit and the Universal Feed Parser requested feed deltas, and the Windows RSS Platform behind Internet Explorer and Outlook followed. On the server side ExpressionEngine, Textpattern, Subtext and an Apache filter module answered with 226, and a WordPress extension did the same without the feature ever reaching WordPress core. PubSub reported average response size falling to a quarter after enabling the method. The proposal never reached the IETF as a draft, the feed manipulation was never registered, and most publishers kept serving full feeds. A handful of readers such as Newsboat still send A-IM: feed on every conditional fetch, so the request side outlived the servers built to answer it.

Code references

.NET

HttpStatusCode.IMUsed

Rust

http::StatusCode::IM_USED

Rails

:im_used

Go

http.StatusIMUsed

Symfony

Response::HTTP_IM_USED

Python3.5+

http.HTTPStatus.IM_USED

Apache HttpComponents Core

org.apache.hc.core5.http.HttpStatus.SC_IM_USED

Angular

@angular/common/http/HttpStatusCode.ImUsed

See also

Last updated: November 3, 2026