Skip to content

feat(cli): preserve structured Brev HTTP error codes - #515

Draft
jarrad wants to merge 2 commits into
mainfrom
fix/brev-13209-cli-error-codes
Draft

jarrad wants to merge 2 commits into
mainfrom
fix/brev-13209-cli-error-codes

Conversation

@jarrad

@jarrad jarrad commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Preserve errors[].code alongside the existing HTTP error envelope type in brev-cli.
  • Add store.IsHTTPErrorCode to match an exact status and code through wrapped errors. Unstructured and unrelated errors keep their existing handling.

Proof

  • go test ./pkg/store -run '^TestIsHTTPErrorCode$' -count=1 (passed with a writable Go cache and local loopback access).
  • The new regression failed before the implementation because the structured code matcher did not exist.

Stack and rollout

Foundation PR for BREV-13209, BREV-13207, and BREV-13200. Based on current brev-cli origin/main (a51d348a). Consumer PRs should target this branch. BREV-13202 separately owns the server code producer; deploy it before relying on the new guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant