Skip to content

<!-- CODE GENERATED BY cmd/harbor-gen-protocol-docs. DO NOT EDIT. -->

Protocol errors

The 11 canonical Harbor Protocol error codes, generated from the single-source registry (internal/protocol/errors). The HTTP column is read from the same code-to-status binding the wire transport serves — the two cannot drift.

Every error response body is the one Error envelope:

json
{ "code": "<stable code>", "message": "<human-readable, advisory>" }

Clients branch on code (stable across Runtime refactors — RFC §5.3), never on message.

CodeHTTPWhen it firesShould you retry?
auth_rejected401A bearer token was present but failed verification: malformed, an algorithm outside the asymmetric allowlist, bad signature, expired / not-yet-valid, unknown kid, audience or issuer mismatch.Only after obtaining a fresh valid token.
identity_required401The request resolved no complete (tenant, user, session) identity scope — a missing bearer, a missing session (no X-Harbor-Session header and no default claim), or a body identity that contradicts the verified token. Identity is mandatory and fails closed.No — attach a token / session first (Auth & identity).
identity_scope_required403The request is authenticated and identified, but the requested cross-tenant fan-in (e.g. events.subscribe?admin=1) or admin verb needs a verified admin / console:fleet scope claim the token does not carry.No — re-authenticate with a scope-bearing token.
invalid_request400The request was structurally malformed: undecodable JSON, a wrong wire shape for the method, a start on a closed session (reopen-after-close is forbidden).No — fix the request shape first.
not_found404The request's target does not exist in the caller's scope: a steering control for a run with no live inbox (never started or already terminal), an unknown task / flow / artifact id. Cross-tenant existence is never revealed — a foreign id is indistinguishable from a missing one.No — the target is gone or never existed for you.
payload_invalid422A control payload violated an RFC §6.3 bound (depth > 6, > 64 keys, > 50 list items, a string > 4096 chars, > 16 KiB total) or carried an unsupported leaf type.No — shrink / restructure the payload.
presign_unsupported501An artifacts.get_ref request reached an ArtifactStore driver without presigned-URL support (in-mem / fs / sqlite / postgres blob drivers). The resolver fails loud instead of silently streaming bytes.No — the configured driver cannot satisfy it; use a presign-capable store (S3 family) or download via the Console proxy.
request_too_large413An artifacts.put body exceeded the configured protocol.max_request_bytes bound. The upload is refused loudly, never truncated.No — shrink the payload or raise the operator-side bound.
runtime_error500An unclassified runtime-side failure — the catch-all. Also used on the SSE surface for subscriber-limit (429) and bus-closed (503) conditions.Yes, with backoff — the request shape is not the problem.
scope_mismatch403The caller's steering scope claim is below the control method's RFC §6.3 minimum, or a cross-tenant steering / mutation was attempted without admin.No — the operation needs a higher scope.
unknown_method404The method name is not in the canonical registry (methods.md).No — check the method name and this Runtime's advertised capabilities (runtime.info).

Apache-2.0 licensed — see LICENSE.