"Http response at 400 or 500 level" error should set a proper error code
Open
- 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
Assessment
This issue has not been assessed yet.