226 IM Used
The server answered a GET with a delta: the result of instance manipulations applied to the current version of the resource.
What 226 IM Used means
Defined by RFC 3229 (delta encoding in HTTP). A client that already has an older version sends A-IM and If-None-Match headers, and the server can reply with only the differences instead of the whole resource.
Very few servers or clients implement delta encoding, so you are unlikely to see 226 outside specialised systems.
Headers that go with it
A-IMIMDelta-Base
Example response
HTTP/1.1 226 IM Used
Content-Type: text/plain; charset=utf-8
226 IM UsedHow to check for a 226 response
cURL
# Print only the status code
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/JavaScript (Node.js)
const res = await fetch("https://example.com/");
if (res.status === 226) {
console.log(res.status, res.statusText);
}Python
import requests
res = requests.get("https://example.com/")
if res.status_code == 226:
print(res.status_code, res.reason)Go
res, err := http.Get("https://example.com/")
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
if res.StatusCode == 226 {
fmt.Println(res.Status)
}Specification
226 IM Used is defined in RFC 3229, section 10.4.1.
Related status codes
- 200
The request worked. The response body holds the result, such as the page, file or JSON data the client asked for.
- 304
The cached copy is still valid, so the server sends no body and the client loads the resource from its own cache.
- 206
The server is sending only part of the file: the byte range the client asked for in its Range header.