76 references to Http3ErrorCode
System.Net.Http (76)
System\Net\Http\HttpProtocolException.cs (19)
51
internal static HttpProtocolException CreateHttp3StreamException(
Http3ErrorCode
protocolError, QuicException innerException)
57
internal static HttpProtocolException CreateHttp3ConnectionException(
Http3ErrorCode
protocolError, string? message = null)
84
private static string GetName(
Http3ErrorCode
code) =>
88
Http3ErrorCode
.NoError => "H3_NO_ERROR",
89
Http3ErrorCode
.ProtocolError => "H3_GENERAL_PROTOCOL_ERROR",
90
Http3ErrorCode
.InternalError => "H3_INTERNAL_ERROR",
91
Http3ErrorCode
.StreamCreationError => "H3_STREAM_CREATION_ERROR",
92
Http3ErrorCode
.ClosedCriticalStream => "H3_CLOSED_CRITICAL_STREAM",
93
Http3ErrorCode
.UnexpectedFrame => "H3_FRAME_UNEXPECTED",
94
Http3ErrorCode
.FrameError => "H3_FRAME_ERROR",
95
Http3ErrorCode
.ExcessiveLoad => "H3_EXCESSIVE_LOAD",
96
Http3ErrorCode
.IdError => "H3_ID_ERROR",
97
Http3ErrorCode
.SettingsError => "H3_SETTINGS_ERROR",
98
Http3ErrorCode
.MissingSettings => "H3_MISSING_SETTINGS",
99
Http3ErrorCode
.RequestRejected => "H3_REQUEST_REJECTED",
100
Http3ErrorCode
.RequestCancelled => "H3_REQUEST_CANCELLED",
101
Http3ErrorCode
.RequestIncomplete => "H3_REQUEST_INCOMPLETE",
102
Http3ErrorCode
.ConnectError => "H3_CONNECT_ERROR",
103
Http3ErrorCode
.VersionFallback => "H3_VERSION_FALLBACK",
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (2)
126
DefaultStreamErrorCode = (long)
Http3ErrorCode
.RequestCancelled,
127
DefaultCloseErrorCode = (long)
Http3ErrorCode
.NoError,
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (29)
146
_connectionClosedTask ??= _connection.CloseAsync((long)
Http3ErrorCode
.NoError).AsTask();
383
long connectionResetErrorCode = (abortException as HttpProtocolException)?.ErrorCode ?? (long)
Http3ErrorCode
.InternalError;
495
Abort(HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ClosedCriticalStream));
504
Http3ErrorCode
code = (
Http3ErrorCode
)ex.ApplicationErrorCode.Value;
565
Http3ErrorCode
code = (
Http3ErrorCode
)ex.ApplicationErrorCode.Value;
589
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.StreamCreationError);
624
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.StreamCreationError);
640
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.StreamCreationError);
651
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.StreamCreationError);
662
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.IdError);
688
stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.StreamCreationError);
700
Http3ErrorCode
code = (
Http3ErrorCode
)ex.ApplicationErrorCode.Value;
731
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ClosedCriticalStream);
736
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.MissingSettings);
754
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.UnexpectedFrame);
766
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.UnexpectedFrame);
770
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.IdError);
784
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ClosedCriticalStream);
797
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ClosedCriticalStream);
822
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
850
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
860
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
879
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.SettingsError);
901
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
909
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
930
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (26)
225
catch (QuicException qex) when (qex.QuicError == QuicError.StreamAborted && qex.ApplicationErrorCode == (long)
Http3ErrorCode
.NoError)
278
Http3ErrorCode
code = (
Http3ErrorCode
)ex.ApplicationErrorCode.Value;
282
case
Http3ErrorCode
.VersionFallback:
286
case
Http3ErrorCode
.RequestRejected:
302
Http3ErrorCode
code = (
Http3ErrorCode
)ex.ApplicationErrorCode.Value;
334
_stream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.RequestCancelled);
350
Exception abortException = _connection.Abort(HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.QPackDecompressionFailed));
355
_stream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.InternalError);
360
_stream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.InternalError);
488
catch (HttpRequestException hex) when (hex.InnerException is QuicException qex && qex.QuicError == QuicError.StreamAborted && qex.ApplicationErrorCode == (long)
Http3ErrorCode
.NoError)
915
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.UnexpectedFrame);
920
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.IdError);
935
_stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.ExcessiveLoad);
1004
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ProtocolError);
1020
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ProtocolError);
1026
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ProtocolError);
1117
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ProtocolError);
1155
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
1322
throw HttpProtocolException.CreateHttp3StreamException((
Http3ErrorCode
)e.ApplicationErrorCode.Value, e);
1327
HttpProtocolException exception = HttpProtocolException.CreateHttp3ConnectionException((
Http3ErrorCode
)e.ApplicationErrorCode.Value, SR.net_http_http3_connection_close);
1349
_stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.RequestCancelled);
1354
_stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.InternalError);
1406
_stream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.RequestCancelled);
1411
_stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.RequestCancelled);