aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop/server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/interop/server.cc')
-rw-r--r--test/cpp/interop/server.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/cpp/interop/server.cc b/test/cpp/interop/server.cc
index db87872cf5..05a10de51e 100644
--- a/test/cpp/interop/server.cc
+++ b/test/cpp/interop/server.cc
@@ -105,6 +105,13 @@ class TestServiceImpl : public TestService::Service {
return Status(grpc::StatusCode::INTERNAL, "Error creating payload.");
}
}
+
+ if (request->has_response_status()) {
+ return Status(static_cast<grpc::StatusCode>
+ (request->response_status().code()),
+ request->response_status().message());
+ }
+
return Status::OK;
}