github.com/prysmaticlabs/prysm@v1.4.4/shared/grpcutils/parameters.go (about)

     1  package grpcutils
     2  
     3  // CustomErrorMetadataKey is the name of the metadata key storing additional error information.
     4  // Metadata value is expected to be a byte-encoded JSON object.
     5  const CustomErrorMetadataKey = "Custom-Error"
     6  
     7  // HttpCodeMetadataKey is the key to use when setting custom HTTP status codes in gRPC metadata.
     8  const HttpCodeMetadataKey = "X-Http-Code"