grpc / grpc/grpc-web

"Http response at 400 or 500 level" error should set a proper error code

Open
#1,070 2 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
802
Avg merge
1d 7h
Merged PRs (30d)
5

Description

When the server is anavailable or otherwise the network is unreachable, grpcweb reports code=UNKNOWN, message="Http response at 400 or 500 level". It should report more proper error code. Most of the clients are better served by setting code=UNAVAILABLE in this case.

GRPC defines the following mapping:

https://grpc.github.io/grpc/core/md_doc_http-grpc-status-mapping.html

Perhaps grpcweb should implement this spec.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.