gdong42 / grpc-mate

A dynamic proxy server that translates JSON HTTP requests into gRPC calls.
https://grpcmate.io
Apache License 2.0
75 stars 9 forks source link

why ResourceExhausted is mapped to HTTP status 503? #15

Open wintermute0 opened 1 day ago

wintermute0 commented 1 day ago

The mapping is here:

https://github.com/gdong42/grpc-mate/blob/3e265f4c5ac3b5a41e0de3cb8cfddd7a28bcec07/errors/errors.go#L135C15-L135C39

According to gRPC standard the mapping should be 429: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto

I'm wondering is there any special reason behind this? Thank you.