mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
8f0008c45a
* begin on api pkg * build * build Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
9 lines
360 B
Go
9 lines
360 B
Go
package grpc
|
|
|
|
// CustomErrorMetadataKey is the name of the metadata key storing additional error information.
|
|
// Metadata value is expected to be a byte-encoded JSON object.
|
|
const CustomErrorMetadataKey = "Custom-Error"
|
|
|
|
// HttpCodeMetadataKey is the key to use when setting custom HTTP status codes in gRPC metadata.
|
|
const HttpCodeMetadataKey = "X-Http-Code"
|