UNIMPLEMENTED status for cardinality violation

pull/6904/head
Nathaniel Manista 9 years ago
parent e697b7dbc6
commit 0442214129
  1. 3
      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

Loading…
Cancel
Save