aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Nathaniel Manista <nathaniel@google.com>2016-06-14 20:10:52 +0000
committerGravatar Nathaniel Manista <nathaniel@google.com>2016-06-14 20:10:52 +0000
commit04422141292aefa489cd6cb5f05a1d2f2de7f20f (patch)
tree33a14cff15b133273b8235855637ebb6f624cd18
parente697b7dbc6ad97e570334fecd2dd1cccaa83aa1a (diff)
UNIMPLEMENTED status for cardinality violation
-rw-r--r--src/python/grpcio/grpc/_server.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/python/grpcio/grpc/_server.py b/src/python/grpcio/grpc/_server.py
index 2f99e5b412..1d62292e90 100644
--- a/src/python/grpcio/grpc/_server.py
+++ b/src/python/grpcio/grpc/_server.py
@@ -342,10 +342,9 @@ def _unary_request(rpc_event, state, request_deserializer):
if state.client is _CLOSED:
details = '"{}" requires exactly one request message.'.format(
rpc_event.request_call_details.method)
- # TODO(5992#issuecomment-220761992): really, what status code?
_abort(
state, rpc_event.operation_call,
- cygrpc.StatusCode.unavailable, details)
+ cygrpc.StatusCode.unimplemented, details)
return None
elif state.client is _CANCELLED:
return None