Map boulder error RateLimited from gRPC `codes.ResourceExhausted` to
`codes.Unknown`. The gRPC HTTP Status Mapping document [1] states:
> This table is to be used only for clients that received a response
that did not include grpc-status. If grpc-status was provided, it must
be used. Servers _must not_ use this table to determine an HTTP status
code to use;
To follow the gRPC recommendation, we'll use the 'ol reliable `Unknown`
and still have the meaningful RateLimited error visible at the API layer.
Fixes https://github.com/letsencrypt/boulder/issues/6682
1.
|
||
|---|---|---|
| .. | ||
| errors.go | ||
| errors_test.go | ||