Skip to content

VOIP-1300-Fix-unregister-error-mapping - #1167

Merged
pchero merged 1 commit into
mainfrom
VOIP-1300-Fix-unregister-error-mapping
Aug 4, 2026
Merged

VOIP-1300-Fix-unregister-error-mapping#1167
pchero merged 1 commit into
mainfrom
VOIP-1300-Fix-unregister-error-mapping

Conversation

@pchero

@pchero pchero commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Fix POST/DELETE /auth/unregister error handling to map downstream errors to correct HTTP status codes instead of collapsing every failure (including permission errors) to a bare 400, matching the pattern already used by PostDelegate in auth_delegate.go.

  • bin-api-manager: Map unregister/recover errors to correct HTTP status codes instead of collapsing everything to 400
  • bin-api-manager: Add abortWithMappedStatus helper mirroring the error-mapping idiom used by PostDelegate
  • bin-api-manager: Add unit and HTTP-level tests for PostAuthUnregister, DeleteAuthUnregister, and abortWithMappedStatus

- bin-api-manager: Map unregister/recover errors to correct HTTP status codes instead of collapsing everything to 400
- bin-api-manager: Add abortWithMappedStatus helper mirroring the error-mapping idiom used by PostDelegate
- bin-api-manager: Add unit and HTTP-level tests for PostAuthUnregister, DeleteAuthUnregister, and abortWithMappedStatus
@pchero
pchero merged commit c79b701 into main Aug 4, 2026
2 of 3 checks passed
@pchero
pchero deleted the VOIP-1300-Fix-unregister-error-mapping branch August 4, 2026 06:09
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