Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a Status to be created from an HTTP status code #2170

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jan 22, 2025

Motivation:

gRPC has a well defined mapping of HTTP status codes to gRPC status codes for when a response doesn't explicitly include a gRPC status.

Modifications:

  • Add an init to status to allow for a status to be created from an HTTP status code.

Result:

Can create a status from an HTTP status code

Motivation:

gRPC has a well defined mapping of HTTP status codes to gRPC status
codes for when a response doesn't explicitly include a gRPC status.

Modifications:

- Add an init to status to allow for a status to be created from an HTTP
  status code.

Result:

Can create a status from an HTTP status code
@glbrntt glbrntt added the 🆕 semver/minor Adds new public API. label Jan 22, 2025
@glbrntt glbrntt requested a review from gjcairo January 22, 2025 10:34
@glbrntt glbrntt enabled auto-merge (squash) January 22, 2025 14:03
@glbrntt glbrntt merged commit 067938b into grpc:main Jan 22, 2025
31 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants