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;
590
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.StreamCreationError);
642
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.StreamCreationError);
655
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.StreamCreationError);
666
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.StreamCreationError);
677
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.IdError);
680
stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.StreamCreationError);
692
Http3ErrorCode
code = (
Http3ErrorCode
)ex.ApplicationErrorCode.Value;
723
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ClosedCriticalStream);
728
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.MissingSettings);
746
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.UnexpectedFrame);
758
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.UnexpectedFrame);
762
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.IdError);
776
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ClosedCriticalStream);
789
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ClosedCriticalStream);
814
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
842
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
852
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
871
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.SettingsError);
893
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
901
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
922
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (26)
247
catch (QuicException qex) when (qex.QuicError == QuicError.StreamAborted && qex.ApplicationErrorCode == (long)
Http3ErrorCode
.NoError)
294
Http3ErrorCode
code = (
Http3ErrorCode
)ex.ApplicationErrorCode.Value;
298
case
Http3ErrorCode
.VersionFallback:
302
case
Http3ErrorCode
.RequestRejected:
318
Http3ErrorCode
code = (
Http3ErrorCode
)ex.ApplicationErrorCode.Value;
350
_stream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.RequestCancelled);
366
Exception abortException = _connection.Abort(HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.QPackDecompressionFailed));
371
_stream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.InternalError);
376
_stream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.InternalError);
516
catch (HttpRequestException hex) when (hex.InnerException is QuicException qex && qex.QuicError == QuicError.StreamAborted && qex.ApplicationErrorCode == (long)
Http3ErrorCode
.NoError)
945
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.UnexpectedFrame);
950
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.IdError);
965
_stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.ExcessiveLoad);
1034
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ProtocolError);
1050
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ProtocolError);
1056
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ProtocolError);
1147
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.ProtocolError);
1185
throw HttpProtocolException.CreateHttp3ConnectionException(
Http3ErrorCode
.FrameError);
1352
throw HttpProtocolException.CreateHttp3StreamException((
Http3ErrorCode
)e.ApplicationErrorCode.Value, e);
1357
HttpProtocolException exception = HttpProtocolException.CreateHttp3ConnectionException((
Http3ErrorCode
)e.ApplicationErrorCode.Value, SR.net_http_http3_connection_close);
1379
_stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.RequestCancelled);
1384
_stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.InternalError);
1436
_stream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.RequestCancelled);
1441
_stream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.RequestCancelled);