214 references to Http3ErrorCode
InMemory.FunctionalTests (76)
Http3\Http3ConnectionTests.cs (10)
190await Http3Api.WaitForConnectionStopAsync(expectedStreamId, false, expectedErrorCode: Http3ErrorCode.NoError); 211await rejectedRequest.WaitForStreamErrorAsync(Http3ErrorCode.RequestRejected); 220await Http3Api.WaitForConnectionStopAsync(4, false, expectedErrorCode: Http3ErrorCode.NoError); 245expectedErrorCode: Http3ErrorCode.SettingsError, 265expectedErrorCode: Http3ErrorCode.StreamCreationError, 287expectedErrorCode: Http3ErrorCode.UnexpectedFrame, 312expectedErrorCode: Http3ErrorCode.ClosedCriticalStream, 338await Http3Api.WaitForConnectionStopAsync(0, true, expectedErrorCode: Http3ErrorCode.NoError); 357expectedErrorCode: Http3ErrorCode.ClosedCriticalStream, 386expectedErrorCode: Http3ErrorCode.FrameError,
Http3\Http3StreamTests.cs (40)
81Http3ErrorCode.ProtocolError, 99Http3ErrorCode.ProtocolError, 141Http3ErrorCode.InternalError, 270Http3ErrorCode.ProtocolError, 287Http3ErrorCode.ProtocolError, 331Http3ErrorCode.ProtocolError, 481Http3ErrorCode.ProtocolError, 501Http3ErrorCode.ProtocolError, 521Http3ErrorCode.ProtocolError, 542Http3ErrorCode.RequestRejected, 701Http3ErrorCode.ProtocolError, 938Http3ErrorCode.InternalError, 1093Http3ErrorCode.InternalError, 1113resetFeature.Reset((int)Http3ErrorCode.RequestCancelled); 1119Http3ErrorCode.RequestCancelled, 1121CoreStrings.FormatHttp3StreamResetByApplication(Http3Formatting.ToFormattedErrorCode(Http3ErrorCode.RequestCancelled))); 1632await requestStream.WaitForStreamErrorAsync(Http3ErrorCode.InternalError, 1690await requestStream.WaitForStreamErrorAsync(Http3ErrorCode.InternalError, 1749await requestStream.WaitForStreamErrorAsync(Http3ErrorCode.InternalError, expectedErrorMessage: null); 1813await requestStream.WaitForStreamErrorAsync(Http3ErrorCode.InternalError, expectedErrorMessage: null); 1851resetFeature.Reset((int)Http3ErrorCode.NoError); 1875Http3ErrorCode.NoError, 1916resetFeature.Reset((int)Http3ErrorCode.NoError); 1943Http3ErrorCode.NoError, 1964Http3ErrorCode.UnexpectedFrame, 2028Http3ErrorCode.UnexpectedFrame, 2036Http3ErrorCode.UnexpectedFrame, 2105Http3ErrorCode.UnexpectedFrame, 2111expectedErrorCode: Http3ErrorCode.UnexpectedFrame, 2136Http3ErrorCode.UnexpectedFrame, 2142Http3ErrorCode.UnexpectedFrame, 2155Http3ErrorCode.RequestIncomplete, 2294private async Task HEADERS_Received_InvalidHeaderFields_StreamError(IEnumerable<KeyValuePair<string, string>> headers, string expectedErrorMessage, Http3ErrorCode? errorCode = null) 2299errorCode ?? Http3ErrorCode.MessageError, 2310Http3ErrorCode.MessageError, 2372return HEADERS_Received_InvalidHeaderFields_StreamError(headers, CoreStrings.BadRequest_HeadersExceedMaxTotalSize, Http3ErrorCode.RequestRejected); 2387Http3ErrorCode.InternalError); 2764return HEADERS_Received_InvalidHeaderFields_StreamError(headers, CoreStrings.BadRequest_RequestLineTooLong, Http3ErrorCode.RequestRejected); 2784Http3ErrorCode.StreamCreationError, 2830Http3ErrorCode.InternalError,
Http3\Http3TimeoutTests.cs (11)
30await Http3Api.WaitForConnectionStopAsync(0, false, expectedErrorCode: Http3ErrorCode.NoError); 47await Http3Api.WaitForConnectionStopAsync(0, false, expectedErrorCode: Http3ErrorCode.NoError); 76await Http3Api.WaitForConnectionStopAsync(4, false, expectedErrorCode: Http3ErrorCode.NoError); 122await Http3Api.WaitForConnectionStopAsync(4, false, expectedErrorCode: Http3ErrorCode.NoError); 152Http3ErrorCode.RequestRejected, 275Http3ErrorCode.StreamCreationError, 370Http3ErrorCode.InternalError, 413Http3ErrorCode.InternalError, 568Http3ErrorCode.InternalError, 623Http3ErrorCode.InternalError, 679Http3ErrorCode.InternalError,
Http3\WebTransport\WebTransportHandshakeTests.cs (4)
87((long)Http3ErrorCode.ProtocolError), 96((long)Http3ErrorCode.ProtocolError), 104((long)Http3ErrorCode.ProtocolError), 140await requestStream.WaitForStreamErrorAsync((Http3ErrorCode)error, AssertExpectedErrorMessages, GetCoreStringFromName(targetErrorMessage));
Http3\WebTransport\WebTransportSessionTests.cs (2)
79session.Abort(new(), System.Net.Http.Http3ErrorCode.InternalError); 88Http3Api.Connection._streams[session.SessionId].Abort(new(), System.Net.Http.Http3ErrorCode.InternalError);
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (9)
138internal Task WaitForConnectionStopAsync(long expectedLastStreamId, bool ignoreNonGoAwayFrames, Http3ErrorCode? expectedErrorCode = null) 143internal async Task WaitForConnectionErrorAsync<TException>(bool ignoreNonGoAwayFrames, long? expectedLastStreamId, Http3ErrorCode expectedErrorCode, Action<Type, string[]> matchExpectedErrorMessage = null, params string[] expectedErrorMessage) 176private void AssertConnectionError<TException>(Http3ErrorCode expectedErrorCode, Action<Type, string[]> matchExpectedErrorMessage = null, params string[] expectedErrorMessage) where TException : Exception 178var currentError = (Http3ErrorCode)MultiplexedConnectionContext.Error; 630internal async Task WaitForStreamErrorAsync(Http3ErrorCode protocolError, Action<string> matchExpectedErrorMessage = null, string expectedErrorMessage = null) 647if (protocolError != Http3ErrorCode.NoError && (Http3ErrorCode)Error != protocolError) 649throw new InvalidOperationException($"Expected error code {protocolError}, got {(Http3ErrorCode)Error}.");
Microsoft.AspNetCore.Server.Kestrel (2)
WebHostBuilderKestrelExtensions.cs (2)
61options.DefaultStreamErrorCode = (long)Http3ErrorCode.RequestCancelled; 62options.DefaultCloseErrorCode = (long)Http3ErrorCode.NoError;
Microsoft.AspNetCore.Server.Kestrel.Core (102)
Internal\Http3\Http3Connection.cs (16)
105private Http3ErrorCode Http3ErrorCodeOrNoError => _errorCodeFeature.Error == -1 ? Http3ErrorCode.NoError : (Http3ErrorCode)_errorCodeFeature.Error; 159Abort(ex, Http3ErrorCode.InternalError, reason); 162public void Abort(ConnectionAbortedException ex, Http3ErrorCode errorCode, ConnectionEndReason reason) 244connection.OnStreamConnectionError(new Http3ConnectionErrorException(CoreStrings.Http3ErrorControlStreamClosed, Http3ErrorCode.ClosedCriticalStream, ConnectionEndReason.ClosedCriticalStream)); 297stream.Abort(new ConnectionAbortedException(CoreStrings.BadRequest_RequestHeadersTimeout), Http3ErrorCode.RequestRejected); 301stream.Abort(new ConnectionAbortedException(CoreStrings.Http3ControlStreamHeaderTimeout), Http3ErrorCode.StreamCreationError); 322OnStreamConnectionError(new Http3ConnectionErrorException(CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied, Http3ErrorCode.InternalError, ConnectionEndReason.MinResponseDataRate)); 454Log.Http3StreamAbort(CoreStrings.FormatUnidentifiedStream(ex.StreamId), Http3ErrorCode.StreamCreationError, new(ex.Message)); 511var errorCode = Http3ErrorCodeOrNoError; 566Abort(CreateConnectionAbortError(error, clientAbort), Http3ErrorCode.InternalError, ConnectionEndReason.OtherError); 588streamContext.Features.GetRequiredFeature<IProtocolErrorCodeFeature>().Error = (long)Http3ErrorCode.RequestRejected; 635throw new Http3StreamErrorException(CoreStrings.ReceivedLooseWebTransportStream, Http3ErrorCode.StreamCreationError); 700_errorCodeFeature.Error = (long)Http3ErrorCode.NoError; 727var connectionError = new Http3ConnectionErrorException(CoreStrings.Http3ControlStreamErrorInitializingOutbound, Http3ErrorCode.ClosedCriticalStream, ConnectionEndReason.ClosedCriticalStream);
Internal\Http3\Http3ConnectionErrorException.cs (2)
10public Http3ConnectionErrorException(string message, Http3ErrorCode errorCode, ConnectionEndReason reason) 17public Http3ErrorCode ErrorCode { get; }
Internal\Http3\Http3ControlStream.cs (11)
84public void Abort(ConnectionAbortedException abortReason, Http3ErrorCode errorCode) 211throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamErrorMultipleInboundStreams("control"), Http3ErrorCode.StreamCreationError, ConnectionEndReason.StreamCreationError); 220throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamErrorMultipleInboundStreams("encoder"), Http3ErrorCode.StreamCreationError, ConnectionEndReason.StreamCreationError); 229throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamErrorMultipleInboundStreams("decoder"), Http3ErrorCode.StreamCreationError, ConnectionEndReason.StreamCreationError); 235throw new Http3StreamErrorException(CoreStrings.FormatHttp3ControlStreamErrorUnsupportedType(_headerType), Http3ErrorCode.StreamCreationError); 339throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ErrorUnsupportedFrameOnControlStream(incomingFrame.FormattedType), Http3ErrorCode.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame); 359throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamFrameTooLarge(http3RawFrame.FormattedType), Http3ErrorCode.FrameError, ConnectionEndReason.InvalidFrameLength); 371throw new Http3ConnectionErrorException(CoreStrings.Http3ErrorControlStreamMultipleSettingsFrames, Http3ErrorCode.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame); 416throw new Http3ConnectionErrorException(message, Http3ErrorCode.SettingsError, ConnectionEndReason.InvalidSettings); 499throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamFrameTooLarge(Http3Formatting.ToFormattedType(incomingFrame.Type)), Http3ErrorCode.FrameError, ConnectionEndReason.InvalidFrameLength); 508throw new Http3ConnectionErrorException(message, Http3ErrorCode.MissingSettings, ConnectionEndReason.InvalidSettings);
Internal\Http3\Http3Formatting.cs (17)
25public static string ToFormattedErrorCode(Http3ErrorCode errorCode) 29Http3ErrorCode.NoError => "H3_NO_ERROR", 30Http3ErrorCode.ProtocolError => "H3_GENERAL_PROTOCOL_ERROR", 31Http3ErrorCode.InternalError => "H3_INTERNAL_ERROR", 32Http3ErrorCode.StreamCreationError => "H3_STREAM_CREATION_ERROR", 33Http3ErrorCode.ClosedCriticalStream => "H3_CLOSED_CRITICAL_STREAM", 34Http3ErrorCode.UnexpectedFrame => "H3_FRAME_UNEXPECTED", 35Http3ErrorCode.FrameError => "H3_FRAME_ERROR", 36Http3ErrorCode.ExcessiveLoad => "H3_EXCESSIVE_LOAD", 37Http3ErrorCode.IdError => "H3_ID_ERROR", 38Http3ErrorCode.SettingsError => "H3_SETTINGS_ERROR", 39Http3ErrorCode.MissingSettings => "H3_MISSING_SETTINGS", 40Http3ErrorCode.RequestRejected => "H3_REQUEST_REJECTED", 41Http3ErrorCode.RequestCancelled => "H3_REQUEST_CANCELLED", 42Http3ErrorCode.RequestIncomplete => "H3_REQUEST_INCOMPLETE", 43Http3ErrorCode.ConnectError => "H3_CONNECT_ERROR", 44Http3ErrorCode.VersionFallback => "H3_VERSION_FALLBACK",
Internal\Http3\Http3FrameWriter.cs (2)
322_http3Stream.Abort(new ConnectionAbortedException(ex.Message, ex), Http3ErrorCode.InternalError); 377_http3Stream.Abort(new ConnectionAbortedException(ex.Message, ex), Http3ErrorCode.InternalError);
Internal\Http3\Http3OutputProducer.cs (2)
110_stream.Abort(abortReason, Http3ErrorCode.InternalError); 115_stream.Abort(new ConnectionAbortedException($"{nameof(Http3OutputProducer)}.{nameof(ProcessDataWrites)} has completed."), Http3ErrorCode.InternalError);
Internal\Http3\Http3Stream.cs (43)
155public void Abort(ConnectionAbortedException abortReason, Http3ErrorCode errorCode) 160private void AbortCore(Exception exception, Http3ErrorCode errorCode) 207Abort(abortReason, Http3ErrorCode.InternalError); 302throw new Http3StreamErrorException(CoreStrings.BadRequest_HeadersExceedMaxTotalSize, Http3ErrorCode.RequestRejected); 363throw new Http3StreamErrorException(bre.Message, Http3ErrorCode.MessageError); 367throw new Http3StreamErrorException(CoreStrings.BadRequest_MalformedRequestInvalidHeaders, Http3ErrorCode.MessageError); 375throw new Http3StreamErrorException(CoreStrings.HttpErrorConnectionSpecificHeaderField, Http3ErrorCode.MessageError); 386throw new Http3StreamErrorException(CoreStrings.HttpErrorTrailerNameUppercase, Http3ErrorCode.MessageError); 390throw new Http3StreamErrorException(CoreStrings.HttpErrorHeaderNameUppercase, Http3ErrorCode.MessageError); 420throw new Http3StreamErrorException(CoreStrings.HttpErrorPseudoHeaderFieldAfterRegularHeaders, Http3ErrorCode.MessageError); 427throw new Http3StreamErrorException(CoreStrings.HttpErrorTrailersContainPseudoHeaderField, Http3ErrorCode.MessageError); 437throw new Http3StreamErrorException(CoreStrings.HttpErrorUnknownPseudoHeaderField, Http3ErrorCode.MessageError); 445throw new Http3StreamErrorException(CoreStrings.HttpErrorResponsePseudoHeaderField, Http3ErrorCode.MessageError); 452throw new Http3StreamErrorException(CoreStrings.HttpErrorDuplicatePseudoHeaderField, Http3ErrorCode.MessageError); 568_streamAbortFeature.AbortRead((long)Http3ErrorCode.NoError, new ConnectionAbortedException("The application completed without reading the entire request body.")); 618stream.AbortCore(new IOException(CoreStrings.HttpStreamResetByClient), (Http3ErrorCode)errorCode); 686AbortCore(new IOException(CoreStrings.HttpStreamResetByClient, ex), (Http3ErrorCode)resolvedErrorCode); 715Abort(streamError, Http3ErrorCode.ProtocolError); 755throw new Http3StreamErrorException(CoreStrings.Http3StreamErrorRequestEndedNoHeaders, Http3ErrorCode.RequestIncomplete); 763throw new Http3StreamErrorException(CoreStrings.Http3StreamErrorLessDataThanLength, Http3ErrorCode.ProtocolError); 786CoreStrings.FormatHttp3ErrorUnsupportedFrameOnRequestStream(incomingFrame.FormattedType), Http3ErrorCode.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame), 789CoreStrings.FormatHttp3ErrorUnsupportedFrameOnServer(incomingFrame.FormattedType), Http3ErrorCode.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame), 809throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3StreamErrorFrameReceivedAfterTrailers(Http3Formatting.ToFormattedType(Http3FrameType.Headers)), Http3ErrorCode.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame); 834throw new Http3StreamErrorException(ex.Message, Http3ErrorCode.InternalError); 868throw new Http3StreamErrorException(CoreStrings.Http3MethodMustBeConnectWhenUsingProtocolPseudoHeader, Http3ErrorCode.ProtocolError); 873throw new Http3StreamErrorException(CoreStrings.Http3MissingAuthorityOrPathPseudoHeaders, Http3ErrorCode.ProtocolError); 878throw new Http3StreamErrorException(CoreStrings.FormatHttp3WebTransportStatusMismatch(_context.ClientPeerSettings.EnableWebTransport == 1, _context.ServerPeerSettings.EnableWebTransport == 1), Http3ErrorCode.SettingsError); 883throw new Http3StreamErrorException(CoreStrings.FormatHttp3DatagramStatusMismatch(_context.ClientPeerSettings.H3Datagram == 1, _context.ServerPeerSettings.H3Datagram == 1), Http3ErrorCode.SettingsError); 901throw new Http3StreamErrorException(CoreStrings.HttpErrorMissingMandatoryPseudoHeaderFields, Http3ErrorCode.MessageError); 917throw new Http3ConnectionErrorException(CoreStrings.Http3StreamErrorDataReceivedBeforeHeaders, Http3ErrorCode.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame); 925throw new Http3ConnectionErrorException(message, Http3ErrorCode.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame); 933throw new Http3StreamErrorException(CoreStrings.Http3StreamErrorMoreDataThanLength, Http3ErrorCode.ProtocolError); 971protected override void ApplicationAbort() => ApplicationAbort(new ConnectionAbortedException(CoreStrings.ConnectionAbortedByApplication), Http3ErrorCode.InternalError); 973private void ApplicationAbort(ConnectionAbortedException abortReason, Http3ErrorCode error) 1047Abort(new ConnectionAbortedException(CoreStrings.Http3ErrorConnectMustNotSendSchemeOrPath), Http3ErrorCode.ProtocolError); 1067Abort(new ConnectionAbortedException(str), Http3ErrorCode.ProtocolError); 1098Abort(new ConnectionAbortedException(CoreStrings.BadRequest_RequestLineTooLong), Http3ErrorCode.RequestRejected); 1118Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3ErrorMethodInvalid(_methodText)), Http3ErrorCode.ProtocolError); 1126Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3ErrorMethodInvalid(_methodText)), Http3ErrorCode.ProtocolError); 1166Abort(new ConnectionAbortedException(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail(hostText)), Http3ErrorCode.ProtocolError); 1179Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)), Http3ErrorCode.ProtocolError); 1218Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)), Http3ErrorCode.ProtocolError); 1288Abort(new(), Http3ErrorCode.RequestCancelled);
Internal\Http3\Http3Stream.FeatureCollection.cs (2)
57var message = CoreStrings.FormatHttp3StreamResetByApplication(Http3Formatting.ToFormattedErrorCode((Http3ErrorCode)errorCode)); 59ApplicationAbort(abortReason, (Http3ErrorCode)errorCode);
Internal\Http3\Http3StreamErrorException.cs (2)
10public Http3StreamErrorException(string message, Http3ErrorCode errorCode) 16public Http3ErrorCode ErrorCode { get; }
Internal\Http3\IHttp3Stream.cs (1)
45void Abort(ConnectionAbortedException abortReason, Http3ErrorCode errorCode);
Internal\Infrastructure\KestrelTrace.Http3.cs (1)
28public void Http3StreamAbort(string traceIdentifier, Http3ErrorCode error, ConnectionAbortedException abortReason)
Internal\WebTransport\WebTransportSession.cs (2)
64Abort(new(), (Http3ErrorCode)errorCode); 91internal void Abort(ConnectionAbortedException exception, Http3ErrorCode error)
Internal\WebTransport\WebTransportStream.cs (1)
86_log.Http3StreamAbort(ConnectionId, Http3ErrorCode.InternalError, abortReason);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (9)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (9)
138internal Task WaitForConnectionStopAsync(long expectedLastStreamId, bool ignoreNonGoAwayFrames, Http3ErrorCode? expectedErrorCode = null) 143internal async Task WaitForConnectionErrorAsync<TException>(bool ignoreNonGoAwayFrames, long? expectedLastStreamId, Http3ErrorCode expectedErrorCode, Action<Type, string[]> matchExpectedErrorMessage = null, params string[] expectedErrorMessage) 176private void AssertConnectionError<TException>(Http3ErrorCode expectedErrorCode, Action<Type, string[]> matchExpectedErrorMessage = null, params string[] expectedErrorMessage) where TException : Exception 178var currentError = (Http3ErrorCode)MultiplexedConnectionContext.Error; 630internal async Task WaitForStreamErrorAsync(Http3ErrorCode protocolError, Action<string> matchExpectedErrorMessage = null, string expectedErrorMessage = null) 647if (protocolError != Http3ErrorCode.NoError && (Http3ErrorCode)Error != protocolError) 649throw new InvalidOperationException($"Expected error code {protocolError}, got {(Http3ErrorCode)Error}.");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (25)
QuicConnectionContextTests.cs (13)
30defaultCloseErrorCode: (long)Http3ErrorCode.RequestCancelled); 54defaultCloseErrorCode: (long)Http3ErrorCode.RequestCancelled); 70exceptionMessage: $"Connection aborted by peer ({(long)Http3ErrorCode.RequestCancelled})."); 72Assert.Equal((long)Http3ErrorCode.RequestCancelled, ex.ApplicationErrorCode); 298await quicConnection.CloseAsync((long)Http3ErrorCode.NoError).DefaultTimeout(); 304Assert.Equal((long)Http3ErrorCode.NoError, innerEx.ApplicationErrorCode.Value); 306Assert.Equal((long)Http3ErrorCode.NoError, serverConnection.Features.Get<IProtocolErrorCodeFeature>().Error); 423clientStream.Abort(QuicAbortDirection.Write, (long)Http3ErrorCode.InternalError); 428Assert.Equal((long)Http3ErrorCode.InternalError, ((QuicException)ex.InnerException).ApplicationErrorCode.Value); 472clientStream.Abort(QuicAbortDirection.Write, (long)Http3ErrorCode.InternalError); 477Assert.Equal((long)Http3ErrorCode.InternalError, ((QuicException)serverEx.InnerException).ApplicationErrorCode.Value); 479serverStream.Features.Get<IProtocolErrorCodeFeature>().Error = (long)Http3ErrorCode.RequestRejected; 489Assert.Equal((long)Http3ErrorCode.RequestRejected, clientEx.ApplicationErrorCode.Value);
QuicStreamContextTests.cs (12)
81serverStream.Features.Get<IStreamAbortFeature>().AbortRead((long)Http3ErrorCode.NoError, new ConnectionAbortedException("Test message.")); 145clientStream.Abort(QuicAbortDirection.Read, (long)Http3ErrorCode.RequestCancelled); 146clientStream.Abort(QuicAbortDirection.Write, (long)Http3ErrorCode.RequestCancelled); 273clientStream.Abort(QuicAbortDirection.Write, (long)Http3ErrorCode.InternalError); 282Assert.Equal((long)Http3ErrorCode.InternalError, ((QuicException)ex.InnerException).ApplicationErrorCode.Value); 286Assert.Equal((long)Http3ErrorCode.InternalError, quicStreamContext.Error); 351clientStream.Abort(QuicAbortDirection.Write, (long)Http3ErrorCode.InternalError); 357Assert.Equal((long)Http3ErrorCode.InternalError, ((QuicException)ex.InnerException).ApplicationErrorCode.Value); 464((IProtocolErrorCodeFeature)serverStream).Error = (long)Http3ErrorCode.InternalError; 471Assert.Equal((long)Http3ErrorCode.InternalError, ex.ApplicationErrorCode.Value); 508streamAbortFeature.AbortRead((long)Http3ErrorCode.InternalError, new ConnectionAbortedException("Test reason")); 524Assert.Equal((long)Http3ErrorCode.InternalError, clientEx.ApplicationErrorCode.Value);