Skip to content
Snippets Groups Projects
Commit 04422141 authored by Nathaniel Manista's avatar Nathaniel Manista
Browse files

UNIMPLEMENTED status for cardinality violation

parent e697b7db
No related branches found
No related tags found
No related merge requests found
...@@ -342,10 +342,9 @@ def _unary_request(rpc_event, state, request_deserializer): ...@@ -342,10 +342,9 @@ def _unary_request(rpc_event, state, request_deserializer):
if state.client is _CLOSED: if state.client is _CLOSED:
details = '"{}" requires exactly one request message.'.format( details = '"{}" requires exactly one request message.'.format(
rpc_event.request_call_details.method) rpc_event.request_call_details.method)
# TODO(5992#issuecomment-220761992): really, what status code?
_abort( _abort(
state, rpc_event.operation_call, state, rpc_event.operation_call,
cygrpc.StatusCode.unavailable, details) cygrpc.StatusCode.unimplemented, details)
return None return None
elif state.client is _CANCELLED: elif state.client is _CANCELLED:
return None return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment