Skip to content

feat(apierror): improve gRPC status code mapping for HTTP errors#431

Merged
shollyman merged 4 commits intogoogleapis:mainfrom
shollyman:canonical-codes
Jul 9, 2025
Merged

feat(apierror): improve gRPC status code mapping for HTTP errors#431
shollyman merged 4 commits intogoogleapis:mainfrom
shollyman:canonical-codes

Conversation

@shollyman
Copy link
Copy Markdown
Contributor

This PR adopts a more canonical error code mapping for users who attempt to use gRPC status for evaluating HTTP-based errors (googleapi.Error). Rather than always returning codes.Unknown, this PR updates the implementation to use the HTTP code for mapping to a more appropriate gRPC status code.

internal: b/427979415

This PR adopts a more canonical error code mapping for users who
attempt to use gRPC status for evaluating HTTP-based errors
(googleapi.Error).  Rather than always returning codes.Unknown, this
PR updates the implementation to use the HTTP code for mapping to
a more appropriate gRPC status code.

internal: b/427979415
@shollyman shollyman requested review from a team, codyoss, noahdietz and quartzmo June 27, 2025 17:04
codyoss
codyoss previously approved these changes Jul 9, 2025
@shollyman shollyman merged commit c207f2a into googleapis:main Jul 9, 2025
4 checks passed
@shollyman shollyman deleted the canonical-codes branch July 9, 2025 22:38
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.

2 participants