1. The problem
In one sentence
The spec describes an operation, but the server has no route for it and answers 404.
A story
A partner team builds an integration from the published spec. The spec lists GET /ghost and says it answers 200 with a small document. Months ago the route was removed from the server, but nobody removed it from the spec. The partner calls it on launch day and gets 404 Not Found. The spec never mentioned that answer.
Why it hurts
The spec is the promise. A route that is in the spec and not on the server is a broken promise that stays hidden until someone calls it. It is a whole-API problem, not a problem of one response: every individual answer the server does give may be perfect.
- For developers: generated clients and documentation still contain the route, so people build on it. The error shows up in someone else’s environment.
- For managers: the published documentation and the real service disagree. Partners lose time, and trust in the documentation falls. The cost of finding it grows with every integration built on the wrong page.
- For DevOps: a full
conformrun after each deploy walks every operation in the spec, so a removed route fails the build on the day it is removed. Run it against a test environment, not production.
Example
The spec fragment:
/ghost:
get:
operationId: ghostRoute
summary: Declared in the spec, no such route on the server
responses:
"200":
description: A thing
content:
application/json:
schema:
$ref: "#/components/schemas/IdDoc"
The server has no route for it. The request and answer:
GET /conform-fail/ghost -> 404
The spec declares only 200. The server answered 404, which the spec does not declare.
How to detect it without clrsig
curl -i http://HOST/ghostand look at the status line.- In a review, compare the list of routes the framework registers with the
pathsof the spec. A route in one list and not in the other is the problem.
How to fix it
There are two usual causes:
- The spec is stale (more likely, when the route was removed on purpose). Remove the operation from the spec, and treat it as a breaking change for clients (AC-054).
- The code lost the route by mistake (a bad merge, a prefix change, a router that is not mounted). Restore the route.
To tell which: check the history of the route in the code, and ask who still calls it. If nobody should, the spec is wrong. Never silence the check.
Related problems
AC-001 Status code the spec never listed, AC-021 Route exists, but not for that method, AC-022 Route on the server, not in the spec.
Words used on this page are explained once in the glossary.
2. How clrsig helps
Check
CS-RESP-001 Undeclared response status. State: caught. Severity today: failure (exit code 1). A missing route shows up as an undeclared 404. clrsig does not say “route missing” as a separate check; it reports the status.
Command
The smallest command that shows it. --paths limits the run to this one GET, so nothing is written:
clrsig conform specs/conform-fail.yaml \
-b http://localhost:8080/conform-fail \
--env clrsig/environments/conform-fail.yaml \
--paths /ghost --explain
Exit code: 0 clean, 1 a finding, 2 the spec or the setup is broken. Here it is 1.
What you see
Output from clrsig v0.21.0, recorded on 2026-11-30. The lines for the 75 operations that --paths skipped are left out by grep -v '^ SKIP'; no line is edited.
conform-fail API 1.0.0
Base URL: http://localhost:8080/conform-fail
Limited by --paths /ghost
FAIL GET /ghost 404 21ms
✗ GET /ghost answered 404, but the spec declares only 200
→ [CS-RESP-001] Status 404 is not declared for GET /ghost. Why: The spec lists the responses GET /ghost may return (200) and 404 is not one of them. A 404 on an operation the spec declares usually means the route does not exist on the server (or the path in the spec is wrong), not that the spec is incomplete. The server's answer: {"detail":"Not Found"}. Where: response status 404 (spec: GET /ghost → responses). Fix: Check that the route exists on the server and that the spec's path is right. Add 404 to GET /ghost → responses only when this operation is really meant to answer 404 (for example an id that does not exist).
FAILED 76 operations · 0 passed · 1 failed · 75 skipped 24ms
How to read it: one operation failed. The text says the status clrsig got and the statuses the spec lists. The → line says why and gives two fixes.
The explanation now says what a 404 on a declared operation usually means: the route does not exist on the server, or the path in the spec is wrong. It offers to add 404 to the spec only for an operation that is really meant to answer 404 (for example GET /items/{id} for an unknown id), and it prints the server’s answer ({"detail":"Not Found"}).
Where to look
- Desktop app: the Check Conformance page shows the operation as failed with the reason “undeclared status”.
- Reports: with
--format json, the finding has"checkId": "CS-RESP-001". - Full run: drop
--pathsto walk every operation.--read-onlysends onlyGETandHEADand skips the rest. - Scenario: a step that calls a URL the spec does not describe is “not checked” (AC-022), the reverse problem.
How clrsig helps you fix it
It gives the exact method, path and status, and says whether the spec or the server has to change. It cannot tell you whether the route was removed on purpose.
Limits
- A
404from a missing route and a404from an unknown id look the same to clrsig. If the spec declares404for the operation, this check passes and the missing route is not found. - A route that exists in the server and not in the spec is a different problem (AC-022).
More ways
Nothing yet.
3. Video brief for Google NotebookLM
VIDEO BRIEF — AC-020 · A documented route does not exist on the server
Length: 5 to 7 minutes. Language: English. Audience: developers, with a line each for managers and DevOps.
One idea: if the spec describes a route, the server must have it; a spec and a server that disagree about what exists is a broken promise.
Open with this story: A partner team builds an integration from the published spec. The spec lists GET /ghost and says it answers 200. Months ago the route was removed from the server, but nobody removed it from the spec. On launch day the partner calls it and gets 404, an answer the spec never mentioned.
Say these facts, in this order:
1. The spec declares GET /ghost with a 200 answer. The server has no route and answers 404.
2. This is a whole-API problem: every answer the server does give may be perfect, and this one still fails.
3. clrsig walks every operation in the spec and sends a request built from it. It reports the missing route as an undeclared status: 404 is not in the list of declared statuses.
4. Two usual causes: the spec is stale (the route was removed on purpose), or the code lost the route by mistake. To tell which: check the history of the route and ask who still calls it.
5. The explanation says that a 404 on a declared operation usually means the route does not exist on the server, or the path in the spec is wrong; adding 404 to the spec is only for an operation that is really meant to answer 404.
6. For managers: documentation and service disagree; partners lose time; the cost grows with each integration built on the wrong page.
7. For DevOps: run a full conform run after each deploy against a test environment; a removed route fails the build the day it is removed.
Show on screen: the spec fragment for /ghost, the line "GET /conform-fail/ghost -> 404", the command (clrsig conform specs/conform-fail.yaml -b http://localhost:8080/conform-fail --env clrsig/environments/conform-fail.yaml --paths /ghost --explain), and the output block, copied exactly from the card.
Name the check: CS-RESP-001, Undeclared response status. Say the clrsig version: v0.21.0.
Explain these words once: OpenAPI spec (the written promise of what an API accepts and returns); operation (one method on one path, such as GET /ghost); undeclared status (an answer status the spec does not list); exit code (0 clean, 1 a finding, 2 setup or spec broken).
Say what clrsig does not see here: if the spec declares 404 for the operation, the check passes and a missing route is not found; a route on the server that is not in the spec is a different problem.
Safety line (if a write is shown): not needed, this command sends one GET.
Finish with three recap questions:
1. What does the spec say about GET /ghost, and what did the server answer? (200 declared; the server answered 404.)
2. Name the two usual causes. (The spec is stale, or the code lost the route.)
3. When is adding 404 to the spec the right fix? (Only when 404 is a real, wanted answer.)
Tease the next video: AC-021 · The route exists, but not for that HTTP method.
Do not: say "contract testing" alone; say clrsig "catches everything"; invent flags, IDs or numbers; read tables aloud; use any fact that is not in the card.