Repository navigation
docs(api): correct REST error status codes against v0.14.3 - #224
TimeToBuildBob wants to merge 3 commits into
Conversation
Every claim was re-run against the v0.14.3 release (aw-server-rust and
Python aw-server, non-testing mode):
- aw-server-rust error bodies are JSON {"message": ...}, not HTML
- Python returns 400 (not 500) for missing bucket fields and for
importing into an existing bucket
- single-event GET for an unknown id is 404 on aw-server-rust too
- query errors are 400 on aw-server-rust, not 500
- import: 422 for well-formed wrong-shape JSON on aw-server-rust; its
multipart field must be named buckets.json
- the /api/ playground is Python-only (aw-server-rust returns 404)
Git-Session-Id: bed1476c-0b54-4dde-9c03-8080d9dde1e7
Git-Session-Id: bed1476c-0b54-4dde-9c03-8080d9dde1e7
Review guide (auto-posted)Structured warm-up for reviewers — what changed, what to run, where to look. Key files
Suggested verification
Known risks / watch points
Suggested review focus
Generated by |
[Low impact] The changes affect readers of one API reference page, not server behavior. Safe to merge; the remaining issues are limited to wording about error responses. FindingsSummaryUpdates the REST reference using the author's v0.14.3 release checks.
Reviews (1) · Last reviewed commit: "docs(api): leave the single-event GET li..." · Reviewed by Greptile |
…load field Git-Session-Id: bed1476c-0b54-4dde-9c03-8080d9dde1e7
🤖 AI code reviewDocumentation-only PR that updates error status codes and error-body claims in Safe to merge — no P0/P1 findingsConfidence 5/5 ✅ No thread-worthy findings. Advisory notes follow; they are retained without opening review threads. 1 advisory finding (summary-only, not scored)These P2 guard, heuristic, trade-off, or documentation claims are retained for judgment without opening review threads.
The PR re-verifies the existing-bucket import behaviour against v0.14.3 and rewrites the Python half of this sentence to How this was verified: Compared line 222 with the v0.14.3 framing on line 46 and with the PR description's table. The table's 'Import into an existing bucket' row reports only the Python result ( Consensus: 2/3 passes agreed — pass 2 looked and disagreed Files changed (1) — the diff as I read it
Reviewed Maintainer commands
|
The REST reference's error-handling notes don't match the current release. I re-ran each claim against the v0.14.3 linux release (
aw-server-rust0.14.3 and the bundled Pythonaw-server), with isolated data dirs and both servers in normal (non-testing) mode.api/rest.rst{"message": ...},content-type: application/json400 {"message": "Missing required field(s): type, hostname"}pulsetime: "HTML 422" on aw-server-rust422, JSON body400for an undefined variable, a syntax error, or an unknown bucket (Python also returns 400)buckets.json400 Bucket 'b1' already exists .../api/Repro, for one server (
--portadapted, separateXDG_*dirs):Not changed here: the single-event GET line, which #213 already corrects. Also not changed: the
?force=1requirement on bucket delete. The docs are right for the Python server (401 without it). aw-server-rust ignores the parameter and deletes anyway, and I'm filing that separately as a code issue.Found during a docs-vs-reality pass over install, API, query and sync pages.