...

Text file src/github.com/grpc-ecosystem/grpc-gateway/internal/errors.proto

Documentation: github.com/grpc-ecosystem/grpc-gateway/internal

     1syntax = "proto3";
     2package grpc.gateway.runtime;
     3option go_package = "internal";
     4
     5import "google/protobuf/any.proto";
     6
     7// Error is the generic error returned from unary RPCs.
     8message Error {
     9	string error = 1;
    10	// This is to make the error more compatible with users that expect errors to be Status objects:
    11	// https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto
    12	// It should be the exact same message as the Error field.
    13	int32 code = 2;
    14	string message = 3;
    15	repeated google.protobuf.Any details = 4;
    16}
    17
    18// StreamError is a response type which is returned when
    19// streaming rpc returns an error.
    20message StreamError {
    21	int32 grpc_code = 1;
    22	int32 http_code = 2;
    23	string message = 3;
    24	string http_status = 4;
    25	repeated google.protobuf.Any details = 5;
    26}

View as plain text