226

IM Used

2xx Success The server has fulfilled a GET request and the response is a representation

Code Examples

Here are examples of how to test HTTP 226 responses in different programming languages:

Select options below to see how to use advanced features in your code:

Request:
curl https://free.mockerapi.com/226
Response Body:
{
  "success": true,
  "status": 226,
  "statusText": "IM Used - The server has fulfilled a GET request and the response is a representation",
  "timestamp": "2025-10-08T10:30:45.123Z",
  "request": {
    "method": "GET",
    "url": "/226",
    "fullUrl": "https://free.mockerapi.com/226"
  }
}
Request:
fetch('https://free.mockerapi.com/226')
  .then(response => {
    console.log('Status:', response.status); // 226
    return response.json();
  })
  .then(data => {
    console.log('Success:', data);
  })
  .catch(error => {
    console.error('Error:', error);
  });
Response Body:
{
  "success": true,
  "status": 226,
  "statusText": "IM Used - The server has fulfilled a GET request and the response is a representation",
  "timestamp": "2025-10-08T10:30:45.123Z",
  "request": {
    "method": "GET",
    "url": "/226",
    "fullUrl": "https://free.mockerapi.com/226"
  }
}
Request:
import requests

response = requests.get('https://free.mockerapi.com/226')

print(f'Status Code: {response.status_code}')  # 226
print(f'Response: {response.json()}')
Response Body:
{
  "success": true,
  "status": 226,
  "statusText": "IM Used - The server has fulfilled a GET request and the response is a representation",
  "timestamp": "2025-10-08T10:30:45.123Z",
  "request": {
    "method": "GET",
    "url": "/226",
    "fullUrl": "https://free.mockerapi.com/226"
  }
}
Request:
Response Body:
{
  "success": true,
  "status": 226,
  "statusText": "IM Used - The server has fulfilled a GET request and the response is a representation",
  "timestamp": "2025-10-08T10:30:45.123Z",
  "request": {
    "method": "GET",
    "url": "/226",
    "fullUrl": "https://free.mockerapi.com/226"
  }
}
Request:
require 'net/http'
require 'json'

uri = URI('https://free.mockerapi.com/226')
response = Net::HTTP.get_response(uri)

puts "Status Code: #{response.code}"  # 226
puts "Response: #{JSON.parse(response.body)}"
Response Body:
{
  "success": true,
  "status": 226,
  "statusText": "IM Used - The server has fulfilled a GET request and the response is a representation",
  "timestamp": "2025-10-08T10:30:45.123Z",
  "request": {
    "method": "GET",
    "url": "/226",
    "fullUrl": "https://free.mockerapi.com/226"
  }
}
Request:
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    resp, err := http.Get("https://free.mockerapi.com/226")
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    fmt.Printf("Status Code: %d\n", resp.StatusCode)  // 226

    body, err := io.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }

    fmt.Printf("Response: %s\n", body)
}
Response Body:
{
  "success": true,
  "status": 226,
  "statusText": "IM Used - The server has fulfilled a GET request and the response is a representation",
  "timestamp": "2025-10-08T10:30:45.123Z",
  "request": {
    "method": "GET",
    "url": "/226",
    "fullUrl": "https://free.mockerapi.com/226"
  }
}
Request:
import java.net.http.*;
import java.net.URI;

public class HttpStatusTest {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://free.mockerapi.com/226"))
            .GET()
            .build();

        HttpResponse response = client.send(request,
            HttpResponse.BodyHandlers.ofString());

        System.out.println("Status Code: " + response.statusCode());  // 226
        System.out.println("Response: " + response.body());
    }
}
Response Body:
{
  "success": true,
  "status": 226,
  "statusText": "IM Used - The server has fulfilled a GET request and the response is a representation",
  "timestamp": "2025-10-08T10:30:45.123Z",
  "request": {
    "method": "GET",
    "url": "/226",
    "fullUrl": "https://free.mockerapi.com/226"
  }
}
Request:
const https = require('https');

https.get('https://free.mockerapi.com/226', (res) => {
  console.log('Status Code:', res.statusCode);  // 226

  let data = '';

  res.on('data', (chunk) => {
    data += chunk;
  });

  res.on('end', () => {
    console.log('Response:', JSON.parse(data));
  });
}).on('error', (err) => {
  console.error('Error:', err.message);
});
Response Body:
{
  "success": true,
  "status": 226,
  "statusText": "IM Used - The server has fulfilled a GET request and the response is a representation",
  "timestamp": "2025-10-08T10:30:45.123Z",
  "request": {
    "method": "GET",
    "url": "/226",
    "fullUrl": "https://free.mockerapi.com/226"
  }
}

What is HTTP 226 IM Used?

HTTP 226 IM Used 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 applied to the current instance. This is used with delta encoding.

  • Delta Encoding: Response contains delta/diff from cached version
  • Instance Manipulation: Applied transformations to the resource
  • Bandwidth Optimization: Reduces data transfer by sending only changes
  • IM Header: Uses Instance Manipulation (IM) header

When Does This Happen?

A 226 IM Used response is returned when the server sends a delta-encoded response instead of the full resource. You'll see this status code when:

  • Using delta encoding to reduce bandwidth usage
  • Sending only changes since a cached version
  • Applying instance manipulations like compression or transformations
  • Optimizing responses for clients with cached content
  • Working with HTTP delta encoding implementations

Try It Live

Click the button below to make a live request and see the 226 IM Used response

Common Use Cases

📉 Bandwidth Optimization

Test delta encoding for reduced data transfer.

🔄 Incremental Updates

Mock incremental content updates instead of full replacements.

💾 Cache Efficiency

Optimize caching strategies with delta-encoded responses.

📱 Mobile Optimization

Reduce mobile data usage with delta encoding.

⚡ Performance

Improve application performance with smaller response sizes.

🔧 IM Header Support

Implement and test Instance Manipulation header handling.

Related Success Status Codes