api: errors carry a code that maps to the UI error catalogue #1941

Open
opened 2026-11-13 02:43:25 +00:00 by sam · 0 comments
Owner

The server answers failures with plain-text http.Error bodies, which the dashboard shows verbatim. Return a stable code alongside the reason (e.g. chat.composer.not_available) so the UI picks copy from ui/src/copy/errors by code, and keep server-side wording centralised like internal/prompts.

Done when internal/webui failures carry a code and the UI maps known codes to catalogue entries, falling back to the server's reason.

The server answers failures with plain-text http.Error bodies, which the dashboard shows verbatim. Return a stable code alongside the reason (e.g. chat.composer.not_available) so the UI picks copy from ui/src/copy/errors by code, and keep server-side wording centralised like internal/prompts. Done when internal/webui failures carry a code and the UI maps known codes to catalogue entries, falling back to the server's reason.
sam added the featuremedium labels 2026-11-14 14:45:41 +00:00
sam added the deferred label 2026-11-15 17:26:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1941