Skip to content

Conversation

shollyman
Copy link
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 a review from a team as a code owner 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