errors.proto 781 B

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