203
HTTP 203 Non-Authoritative Information
2xx Success
- Home
- HTTP Status Codes
- 2xx
- 203
2xx Success
RFC 7231, Section 6.3.4
What is HTTP 203 Non-Authoritative Information?
The 203 (Non-Authoritative Information) status code indicates that the request was successful but the enclosed payload has been modified from that of the origin server's 200 (OK) response by a transforming proxy. This allows intermediaries to note that the content may differ from the original source.
Common Use Cases
- Proxy servers that modify content for optimization
- Content translation or transcoding services
Usage Example
When implementing a content optimization proxy that compresses images or minifies JavaScript on the fly, return 203 Non-Authoritative Information to indicate the response differs from the origin server's original payload. This transparency helps clients understand why content might differ from the canonical source.
// PHP - proxy returning 203 after modifying content
$originResponse = file_get_contents('https://origin.example.com/page');
$modified = minifyHtml($originResponse);
http_response_code(203);
header('Content-Type: text/html');
echo $modified;