Fix error URLs and disambiguate error code 40300#1027
Open
flossypurse wants to merge 1 commit intomainfrom
Open
Fix error URLs and disambiguate error code 40300#1027flossypurse wants to merge 1 commit intomainfrom
flossypurse wants to merge 1 commit intomainfrom
Conversation
- Update error documentation URLs from /operate/errors to /debug/errors - Add StatusForbiddenPrefix (40310) for JWT auth "unauthorized prefix" errors - StatusForbidden (40300) is now reserved for "promise already resolved" per docs Refs: resonatehq/resonatehq-workq#6, #1014 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1027 +/- ##
==========================================
- Coverage 51.80% 51.78% -0.02%
==========================================
Files 110 110
Lines 10478 10480 +2
==========================================
- Hits 5428 5427 -1
- Misses 4637 4639 +2
- Partials 413 414 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/operate/errorsto/debug/errors(3 occurrences inerror.go)StatusForbiddenPrefix(40310) for JWT auth "unauthorized prefix" errors, so 40300 is no longer overloaded for both auth and promise immutabilityStatusForbidden(40300) is now reserved for "promise already resolved" per the error docsThis is part of the composite debugging/developer UX improvement tracked in resonatehq/resonatehq-workq#6.
Resolves #1014
Related PRs
Test plan
go build ./...passesgo test ./internal/kernel/t_api/... ./internal/api/... ./internal/app/subsystems/api/...passes🤖 Generated with Claude Code