From d620b7b19415665fda46804ab0a3a013f0a6576a Mon Sep 17 00:00:00 2001 From: 13768039+zomby1 <13768039+zomby1@users.noreply.github.com> Date: Wed, 25 Nov 2026 10:35:10 +0100 Subject: [PATCH] docs(api): the hook-path 401 carries no Basic challenge --- docs/api-reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-reference.md b/docs/api-reference.md index ded48797..0d374ee5 100644 --- a/docs/api-reference.md +++ b/docs/api-reference.md @@ -61,8 +61,8 @@ payload return `{ "success": true, "data": {} }`. ⚠️ **A `401` is not an envelope.** Authentication is rejected in a request hook, before any handler runs, and it replies with the bare string -`Unauthorized` (`Unauthorized: hook secret required` on the hook path) plus -`WWW-Authenticate: Basic realm="Codeman"`. With trusted-proxy sign-in on (experimental, +`Unauthorized` plus `WWW-Authenticate: Basic realm="Codeman"` (on the hook path it is +`Unauthorized: hook secret required`, without that header). With trusted-proxy sign-in on (experimental, see [Authentication](#authentication)) the same hook has more plain-text replies: a `401` without `WWW-Authenticate`, a `403` and a `503` for a refused proxy identity, and a `403` or `404` for a `/webview/` or `/html-view/` path without a live capability. There is no `success`, no `error`, and no