Code Examples
Here are examples of how to test HTTP 203 responses in different programming languages:
Select options below to see how to use advanced features in your code:
curl https://free.mockerapi.com/203
{
"success": true,
"status": 203,
"statusText": "Non-Authoritative Information - The request was successful but metadata may be from a different source",
"timestamp": "2025-10-08T10:30:45.123Z",
"request": {
"method": "GET",
"url": "/203",
"fullUrl": "https://free.mockerapi.com/203"
}
}fetch('https://free.mockerapi.com/203')
.then(response => {
console.log('Status:', response.status); // 203
return response.json();
})
.then(data => {
console.log('Success:', data);
})
.catch(error => {
console.error('Error:', error);
});{
"success": true,
"status": 203,
"statusText": "Non-Authoritative Information - The request was successful but metadata may be from a different source",
"timestamp": "2025-10-08T10:30:45.123Z",
"request": {
"method": "GET",
"url": "/203",
"fullUrl": "https://free.mockerapi.com/203"
}
}import requests
response = requests.get('https://free.mockerapi.com/203')
print(f'Status Code: {response.status_code}') # 203
print(f'Response: {response.json()}'){
"success": true,
"status": 203,
"statusText": "Non-Authoritative Information - The request was successful but metadata may be from a different source",
"timestamp": "2025-10-08T10:30:45.123Z",
"request": {
"method": "GET",
"url": "/203",
"fullUrl": "https://free.mockerapi.com/203"
}
}{
"success": true,
"status": 203,
"statusText": "Non-Authoritative Information - The request was successful but metadata may be from a different source",
"timestamp": "2025-10-08T10:30:45.123Z",
"request": {
"method": "GET",
"url": "/203",
"fullUrl": "https://free.mockerapi.com/203"
}
}require 'net/http'
require 'json'
uri = URI('https://free.mockerapi.com/203')
response = Net::HTTP.get_response(uri)
puts "Status Code: #{response.code}" # 203
puts "Response: #{JSON.parse(response.body)}"{
"success": true,
"status": 203,
"statusText": "Non-Authoritative Information - The request was successful but metadata may be from a different source",
"timestamp": "2025-10-08T10:30:45.123Z",
"request": {
"method": "GET",
"url": "/203",
"fullUrl": "https://free.mockerapi.com/203"
}
}package main
import (
"fmt"
"io"
"net/http"
)
func main() {
resp, err := http.Get("https://free.mockerapi.com/203")
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Printf("Status Code: %d\n", resp.StatusCode) // 203
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Printf("Response: %s\n", body)
}{
"success": true,
"status": 203,
"statusText": "Non-Authoritative Information - The request was successful but metadata may be from a different source",
"timestamp": "2025-10-08T10:30:45.123Z",
"request": {
"method": "GET",
"url": "/203",
"fullUrl": "https://free.mockerapi.com/203"
}
}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/203"))
.GET()
.build();
HttpResponse response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println("Status Code: " + response.statusCode()); // 203
System.out.println("Response: " + response.body());
}
} {
"success": true,
"status": 203,
"statusText": "Non-Authoritative Information - The request was successful but metadata may be from a different source",
"timestamp": "2025-10-08T10:30:45.123Z",
"request": {
"method": "GET",
"url": "/203",
"fullUrl": "https://free.mockerapi.com/203"
}
}const https = require('https');
https.get('https://free.mockerapi.com/203', (res) => {
console.log('Status Code:', res.statusCode); // 203
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);
});{
"success": true,
"status": 203,
"statusText": "Non-Authoritative Information - The request was successful but metadata may be from a different source",
"timestamp": "2025-10-08T10:30:45.123Z",
"request": {
"method": "GET",
"url": "/203",
"fullUrl": "https://free.mockerapi.com/203"
}
}What is HTTP 203 Non-Authoritative Information?
HTTP 203 Non-Authoritative Information indicates that the request was successful, but the enclosed payload has been modified by a transforming proxy from the origin server's 200 OK response. This status code allows proxies to notify recipients when a transformation has been applied.
- Modified Response: The response has been modified by a proxy
- Metadata Changes: Headers or metadata may differ from the origin
- Proxy Indication: Indicates an intermediary has transformed the response
- Still Successful: The request itself was successful
When Does This Happen?
A 203 Non-Authoritative Information response is returned when a proxy or intermediate server modifies the response from the origin server. You'll see this status code when:
- A proxy server modifies headers or metadata in the response
- Content delivery networks transform responses before delivering them
- Security proxies add or modify security-related headers
- Caching proxies serve modified versions of cached content
- API gateways transform responses between microservices
Try It Live
Click the button below to make a live request and see the 203 Non-Authoritative Information response
Common Use Cases
🔄 Proxy Testing
Test how your application handles responses that have been modified by proxies.
🌐 CDN Integration
Mock responses from content delivery networks that transform origin responses.
🔒 Security Proxy
Simulate security proxies that add authentication or security headers.
📊 API Gateway
Test API gateway scenarios where responses are transformed between services.
💾 Cache Handling
Develop cache-aware logic that handles modified cached responses.
🔍 Response Validation
Verify your application properly handles non-authoritative metadata.