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

transport/http2: use HTTP 400 for bad requests instead of 500 #5804

Merged
merged 1 commit into from Dec 13, 2022

Commits on Dec 9, 2022

  1. transport/http2: use HTTP 400 for bad requests instead of 500

    Non-servicable HTTP requests from clients previously resulted in an HTTP
    500 response, but no error exists within the server; the client simply
    sent a malformed request. Detect bad requests and return HTTP 400 Bad
    Request instead of HTTP 500 Internal Server Error.
    
    fixes grpc#5802
    sjbarag committed Dec 9, 2022
    Copy the full SHA
    d789adc View commit details
    Browse the repository at this point in the history