        {
            // These strings are the names used in the HTTP2 spec and should not be localized.
            switch (code)
            {
                case Http2ProtocolErrorCode.NoError:
                    return "NO_ERROR";
                default: // any unrecognized error code is treated as a protocol error
                case Http2ProtocolErrorCode.ProtocolError:
                    return "PROTOCOL_ERROR";
                case Http2ProtocolErrorCode.InternalError:
                    return "INTERNAL_ERROR";
                case Http2ProtocolErrorCode.FlowControlError:
                    return "FLOW_CONTROL_ERROR";
                case Http2ProtocolErrorCode.SettingsTimeout: