Skip to content

ERROR_REASONS

View as Markdown
const ERROR_REASONS: object;

Defined in: client/src/errors.ts:9

details.reason values the client and proxy attach so UIs can tell transport failures apart: network (the request never got a response), http_status (a non-JSON error response; details.status), daemon_unreachable (the proxy has no token or cannot reach the daemon), headers (the headers() option threw).

Name Type Default value Description Defined in
daemonUnreachable "daemon_unreachable" 'daemon_unreachable' - client/src/errors.ts:12
headers "headers" 'headers' The headers() option threw (e.g. a failed token refresh); code unauthorized, status 0. client/src/errors.ts:14
httpStatus "http_status" 'http_status' - client/src/errors.ts:11
network "network" 'network' - client/src/errors.ts:10