package http; import "common/rpc.proto"; message HttpResponse { required common.Response header = 1; message Payload { required int32 status_code = 1; required string response_body = 2; map headers = 3; } enum SocketError { ConnectionError = 103; Timeout = 110; } oneof result { // tcp connection error code SocketError connection_error = 2; Payload payload = 3; } }