Clear Web UI session on 401 and keep API/Ingress errors as JSON.

Include the missing resource id in not-found messages, expire auth to Guest
after 401, and document Ingress annotations so nginx does not rewrite 404/405
bodies into branded HTML.
This commit is contained in:
2026-07-22 06:52:23 +03:00
parent 147f04c9a2
commit f1289858fd
10 changed files with 172 additions and 24 deletions
+1 -1
View File
@@ -176,5 +176,5 @@ async def test_missing_node_returns_404() -> None:
pool.node_exists = False
handler = registry.get("/nodes/{node}/storage", "GET")
assert handler is not None
with pytest.raises(ApiError, match="node does not exist"):
with pytest.raises(ApiError, match=r"No such node \('missing'\)"):
await handler(_request(pool), {"values": {"node": "missing"}})