boulder/errors
Phil Porada 569a2e3843
Map boulder error RateLimited to gRPC codes.Unavailable (#6685)
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.
420180c6d7/doc/http-grpc-status-mapping.md
2023-02-22 17:59:11 -05:00
..
errors.go Map boulder error RateLimited to gRPC codes.Unavailable (#6685) 2023-02-22 17:59:11 -05:00
errors_test.go gofmt code with -s (simplify) flag (#4763) 2020-04-08 17:25:35 -07:00