Skip to content

203 Non-Authoritative Information — Meaning, Common Causes & How to Fix

203 2xx Success RFC 9110 §15.3.4

203 Non-Authoritative Information means: The request succeeded, but the returned payload was transformed by an intermediary rather than coming verbatim from the origin server. A filtering or annotating proxy uses it to signal that the representation is a modified copy of the origin's 200. Success 2xx codes confirm the request was received, understood and accepted. The family distinguishes what kind of success happened — content returned, resource created, work queued, or nothing to return — and choosing the precise code is part of a well-designed API contract that clients and caches can rely on. In practice you will meet 203 when a corporate proxy rewrites or annotates content in transit; a cdn applies edge-side transformations (image optimization, html injection); a caching intermediary serves a locally modified copy of an origin response. On the client side, be aware the payload may differ from the origin's version; validate critical data against the origin if integrity matters. On the server side, intermediaries should use 203 when they modify a 200 payload; origins themselves almost never emit it.

Advertisement
Ad slot · ref-top

When 203 happens

  • A corporate proxy rewrites or annotates content in transit
  • A CDN applies edge-side transformations (image optimization, HTML injection)
  • A caching intermediary serves a locally modified copy of an origin response

How to fix it

On the client

Be aware the payload may differ from the origin's version; validate critical data against the origin if integrity matters.

On the server

Intermediaries should use 203 when they modify a 200 payload; origins themselves almost never emit it.

Should you retry?

Success — nothing to retry.

Debugging steps

When 203 appears unexpectedly, start by capturing the full exchange: 'curl -i' or the browser DevTools Network tab shows the exact status line and response headers, which often carry the real explanation. Success codes rarely need debugging, but verify the body semantics match the code — a 200 wrapping an error payload is an API design bug, not a transport problem. For this code specifically, check whether the most common trigger applies to your situation: a corporate proxy rewrites or annotates content in transit. Compare your exchange against the raw HTTP example above. If you operate the server, correlate the timestamp with application and proxy logs using the request id; if you are the client, verify the request shape against the API documentation before changing anything or retrying.

Notes & gotchas

203 is a signal from intermediaries, not origins: it tells caches and integrity-sensitive clients that the payload was transformed in transit and may differ from the source.

Examples

Raw HTTP
HTTP/1.1 203 Non-Authoritative Information
Content-Type: application/json
Content-Length: 97

{
  "id": 12345,
  "status": "ok",
  "message": "Non-Authoritative Information example payload"
}
curl
curl -i https://api.example.com/v1/resource   # observe the 203 response and its headers
JavaScript (fetch)
const res = await fetch("https://api.example.com/v1/resource");
if (res.ok) {
  const data = await res.json(); // 203 Non-Authoritative Information
  return data;
}
Python (requests)
import requests

res = requests.get("https://api.example.com/v1/resource", timeout=10)
res.raise_for_status()
data = res.json()  # 203 Non-Authoritative Information

Frequently asked questions

Do browsers treat 203 differently from 200?

Largely the same for rendering; the distinction matters for caches and for clients that need origin-faithful content.

Why would a CDN return 203?

When it transforms the origin payload (e.g. auto-format images or inject scripts) and wants to signal the content is non-authoritative.

Which 2xx code should my API return?

200 for a normal result, 201 when a resource was created (with Location), 202 when work is queued, 204 when there is nothing to return. Precision here makes clients, caches and monitors behave correctly.

Can I treat any 2xx as interchangeable success?

For 'did it work' yes, but the distinctions matter operationally: 201 means a resource exists, 202 means work is still pending, 204 means there is no body to parse. Code that ignores them breaks.

Advertisement
Ad slot · ref-in-article

Try the JSON Validator

Check JSON syntax and locate errors by line and column.

Open tool →