khenaidoo | d948f77 | 2021-08-11 17:49:24 -0400 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | package grpc.gateway.runtime; |
| 3 | option go_package = "internal"; |
| 4 | |
| 5 | import "google/protobuf/any.proto"; |
| 6 | |
| 7 | // Error is the generic error returned from unary RPCs. |
| 8 | message 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. |
| 20 | message 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 | } |