100 references to Http3ErrorCode
Microsoft.AspNetCore.Server.Kestrel.Core (100)
Internal\Http3\Http3Connection.cs (16)
105
private
Http3ErrorCode
Http3ErrorCodeOrNoError => _errorCodeFeature.Error == -1 ?
Http3ErrorCode
.NoError : (
Http3ErrorCode
)_errorCodeFeature.Error;
159
Abort(ex,
Http3ErrorCode
.InternalError, reason);
162
public void Abort(ConnectionAbortedException ex,
Http3ErrorCode
errorCode, ConnectionEndReason reason)
244
connection.OnStreamConnectionError(new Http3ConnectionErrorException(CoreStrings.Http3ErrorControlStreamClosed,
Http3ErrorCode
.ClosedCriticalStream, ConnectionEndReason.ClosedCriticalStream));
297
stream.Abort(new ConnectionAbortedException(CoreStrings.BadRequest_RequestHeadersTimeout),
Http3ErrorCode
.RequestRejected);
301
stream.Abort(new ConnectionAbortedException(CoreStrings.Http3ControlStreamHeaderTimeout),
Http3ErrorCode
.StreamCreationError);
322
OnStreamConnectionError(new Http3ConnectionErrorException(CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied,
Http3ErrorCode
.InternalError, ConnectionEndReason.MinResponseDataRate));
454
Log.Http3StreamAbort(CoreStrings.FormatUnidentifiedStream(ex.StreamId),
Http3ErrorCode
.StreamCreationError, new(ex.Message));
511
var
errorCode = Http3ErrorCodeOrNoError;
566
Abort(CreateConnectionAbortError(error, clientAbort),
Http3ErrorCode
.InternalError, ConnectionEndReason.OtherError);
588
streamContext.Features.GetRequiredFeature<IProtocolErrorCodeFeature>().Error = (long)
Http3ErrorCode
.RequestRejected;
635
throw new Http3StreamErrorException(CoreStrings.ReceivedLooseWebTransportStream,
Http3ErrorCode
.StreamCreationError);
700
_errorCodeFeature.Error = (long)
Http3ErrorCode
.NoError;
727
var connectionError = new Http3ConnectionErrorException(CoreStrings.Http3ControlStreamErrorInitializingOutbound,
Http3ErrorCode
.ClosedCriticalStream, ConnectionEndReason.ClosedCriticalStream);
Internal\Http3\Http3ConnectionErrorException.cs (2)
10
public Http3ConnectionErrorException(string message,
Http3ErrorCode
errorCode, ConnectionEndReason reason)
17
public
Http3ErrorCode
ErrorCode { get; }
Internal\Http3\Http3ControlStream.cs (9)
78
public void Abort(ConnectionAbortedException abortReason,
Http3ErrorCode
errorCode)
205
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamErrorMultipleInboundStreams("control"),
Http3ErrorCode
.StreamCreationError, ConnectionEndReason.StreamCreationError);
214
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamErrorMultipleInboundStreams("encoder"),
Http3ErrorCode
.StreamCreationError, ConnectionEndReason.StreamCreationError);
223
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamErrorMultipleInboundStreams("decoder"),
Http3ErrorCode
.StreamCreationError, ConnectionEndReason.StreamCreationError);
229
throw new Http3StreamErrorException(CoreStrings.FormatHttp3ControlStreamErrorUnsupportedType(_headerType),
Http3ErrorCode
.StreamCreationError);
305
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ErrorUnsupportedFrameOnControlStream(_incomingFrame.FormattedType),
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
324
throw new Http3ConnectionErrorException(CoreStrings.Http3ErrorControlStreamMultipleSettingsFrames,
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
370
throw new Http3ConnectionErrorException(message,
Http3ErrorCode
.SettingsError, ConnectionEndReason.InvalidSettings);
434
throw new Http3ConnectionErrorException(message,
Http3ErrorCode
.MissingSettings, ConnectionEndReason.InvalidSettings);
Internal\Http3\Http3Formatting.cs (17)
25
public static string ToFormattedErrorCode(
Http3ErrorCode
errorCode)
29
Http3ErrorCode
.NoError => "H3_NO_ERROR",
30
Http3ErrorCode
.ProtocolError => "H3_GENERAL_PROTOCOL_ERROR",
31
Http3ErrorCode
.InternalError => "H3_INTERNAL_ERROR",
32
Http3ErrorCode
.StreamCreationError => "H3_STREAM_CREATION_ERROR",
33
Http3ErrorCode
.ClosedCriticalStream => "H3_CLOSED_CRITICAL_STREAM",
34
Http3ErrorCode
.UnexpectedFrame => "H3_FRAME_UNEXPECTED",
35
Http3ErrorCode
.FrameError => "H3_FRAME_ERROR",
36
Http3ErrorCode
.ExcessiveLoad => "H3_EXCESSIVE_LOAD",
37
Http3ErrorCode
.IdError => "H3_ID_ERROR",
38
Http3ErrorCode
.SettingsError => "H3_SETTINGS_ERROR",
39
Http3ErrorCode
.MissingSettings => "H3_MISSING_SETTINGS",
40
Http3ErrorCode
.RequestRejected => "H3_REQUEST_REJECTED",
41
Http3ErrorCode
.RequestCancelled => "H3_REQUEST_CANCELLED",
42
Http3ErrorCode
.RequestIncomplete => "H3_REQUEST_INCOMPLETE",
43
Http3ErrorCode
.ConnectError => "H3_CONNECT_ERROR",
44
Http3ErrorCode
.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)
112
_stream.Abort(abortReason,
Http3ErrorCode
.InternalError);
117
_stream.Abort(new ConnectionAbortedException($"{nameof(Http3OutputProducer)}.{nameof(ProcessDataWrites)} has completed."),
Http3ErrorCode
.InternalError);
Internal\Http3\Http3Stream.cs (43)
144
public void Abort(ConnectionAbortedException abortReason,
Http3ErrorCode
errorCode)
149
private void AbortCore(Exception exception,
Http3ErrorCode
errorCode)
196
Abort(abortReason,
Http3ErrorCode
.InternalError);
291
throw new Http3StreamErrorException(CoreStrings.BadRequest_HeadersExceedMaxTotalSize,
Http3ErrorCode
.RequestRejected);
352
throw new Http3StreamErrorException(bre.Message,
Http3ErrorCode
.MessageError);
356
throw new Http3StreamErrorException(CoreStrings.BadRequest_MalformedRequestInvalidHeaders,
Http3ErrorCode
.MessageError);
364
throw new Http3StreamErrorException(CoreStrings.HttpErrorConnectionSpecificHeaderField,
Http3ErrorCode
.MessageError);
375
throw new Http3StreamErrorException(CoreStrings.HttpErrorTrailerNameUppercase,
Http3ErrorCode
.MessageError);
379
throw new Http3StreamErrorException(CoreStrings.HttpErrorHeaderNameUppercase,
Http3ErrorCode
.MessageError);
409
throw new Http3StreamErrorException(CoreStrings.HttpErrorPseudoHeaderFieldAfterRegularHeaders,
Http3ErrorCode
.MessageError);
416
throw new Http3StreamErrorException(CoreStrings.HttpErrorTrailersContainPseudoHeaderField,
Http3ErrorCode
.MessageError);
426
throw new Http3StreamErrorException(CoreStrings.HttpErrorUnknownPseudoHeaderField,
Http3ErrorCode
.MessageError);
434
throw new Http3StreamErrorException(CoreStrings.HttpErrorResponsePseudoHeaderField,
Http3ErrorCode
.MessageError);
441
throw new Http3StreamErrorException(CoreStrings.HttpErrorDuplicatePseudoHeaderField,
Http3ErrorCode
.MessageError);
557
_streamAbortFeature.AbortRead((long)
Http3ErrorCode
.NoError, new ConnectionAbortedException("The application completed without reading the entire request body."));
605
stream.AbortCore(new IOException(CoreStrings.HttpStreamResetByClient), (
Http3ErrorCode
)errorCode);
664
AbortCore(new IOException(CoreStrings.HttpStreamResetByClient, ex), (
Http3ErrorCode
)resolvedErrorCode);
693
Abort(streamError,
Http3ErrorCode
.ProtocolError);
733
throw new Http3StreamErrorException(CoreStrings.Http3StreamErrorRequestEndedNoHeaders,
Http3ErrorCode
.RequestIncomplete);
741
throw new Http3StreamErrorException(CoreStrings.Http3StreamErrorLessDataThanLength,
Http3ErrorCode
.ProtocolError);
763
CoreStrings.FormatHttp3ErrorUnsupportedFrameOnRequestStream(_incomingFrame.FormattedType),
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame),
766
CoreStrings.FormatHttp3ErrorUnsupportedFrameOnServer(_incomingFrame.FormattedType),
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame),
784
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3StreamErrorFrameReceivedAfterTrailers(Http3Formatting.ToFormattedType(Http3FrameType.Headers)),
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
800
throw new Http3StreamErrorException(ex.Message,
Http3ErrorCode
.InternalError);
834
throw new Http3StreamErrorException(CoreStrings.Http3MethodMustBeConnectWhenUsingProtocolPseudoHeader,
Http3ErrorCode
.ProtocolError);
839
throw new Http3StreamErrorException(CoreStrings.Http3MissingAuthorityOrPathPseudoHeaders,
Http3ErrorCode
.ProtocolError);
844
throw new Http3StreamErrorException(CoreStrings.FormatHttp3WebTransportStatusMismatch(_context.ClientPeerSettings.EnableWebTransport == 1, _context.ServerPeerSettings.EnableWebTransport == 1),
Http3ErrorCode
.SettingsError);
849
throw new Http3StreamErrorException(CoreStrings.FormatHttp3DatagramStatusMismatch(_context.ClientPeerSettings.H3Datagram == 1, _context.ServerPeerSettings.H3Datagram == 1),
Http3ErrorCode
.SettingsError);
867
throw new Http3StreamErrorException(CoreStrings.HttpErrorMissingMandatoryPseudoHeaderFields,
Http3ErrorCode
.MessageError);
883
throw new Http3ConnectionErrorException(CoreStrings.Http3StreamErrorDataReceivedBeforeHeaders,
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
891
throw new Http3ConnectionErrorException(message,
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
899
throw new Http3StreamErrorException(CoreStrings.Http3StreamErrorMoreDataThanLength,
Http3ErrorCode
.ProtocolError);
935
protected override void ApplicationAbort() => ApplicationAbort(new ConnectionAbortedException(CoreStrings.ConnectionAbortedByApplication),
Http3ErrorCode
.InternalError);
937
private void ApplicationAbort(ConnectionAbortedException abortReason,
Http3ErrorCode
error)
1006
Abort(new ConnectionAbortedException(CoreStrings.Http3ErrorConnectMustNotSendSchemeOrPath),
Http3ErrorCode
.ProtocolError);
1026
Abort(new ConnectionAbortedException(str),
Http3ErrorCode
.ProtocolError);
1057
Abort(new ConnectionAbortedException(CoreStrings.BadRequest_RequestLineTooLong),
Http3ErrorCode
.RequestRejected);
1077
Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3ErrorMethodInvalid(_methodText)),
Http3ErrorCode
.ProtocolError);
1085
Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3ErrorMethodInvalid(_methodText)),
Http3ErrorCode
.ProtocolError);
1125
Abort(new ConnectionAbortedException(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail(hostText)),
Http3ErrorCode
.ProtocolError);
1138
Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)),
Http3ErrorCode
.ProtocolError);
1177
Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)),
Http3ErrorCode
.ProtocolError);
1247
Abort(new(),
Http3ErrorCode
.RequestCancelled);
Internal\Http3\Http3Stream.FeatureCollection.cs (2)
57
var message = CoreStrings.FormatHttp3StreamResetByApplication(Http3Formatting.ToFormattedErrorCode((
Http3ErrorCode
)errorCode));
59
ApplicationAbort(abortReason, (
Http3ErrorCode
)errorCode);
Internal\Http3\Http3StreamErrorException.cs (2)
10
public Http3StreamErrorException(string message,
Http3ErrorCode
errorCode)
16
public
Http3ErrorCode
ErrorCode { get; }
Internal\Http3\IHttp3Stream.cs (1)
45
void Abort(ConnectionAbortedException abortReason,
Http3ErrorCode
errorCode);
Internal\Infrastructure\KestrelTrace.Http3.cs (1)
28
public void Http3StreamAbort(string traceIdentifier,
Http3ErrorCode
error, ConnectionAbortedException abortReason)
Internal\WebTransport\WebTransportSession.cs (2)
64
Abort(new(), (
Http3ErrorCode
)errorCode);
91
internal void Abort(ConnectionAbortedException exception,
Http3ErrorCode
error)
Internal\WebTransport\WebTransportStream.cs (1)
86
_log.Http3StreamAbort(ConnectionId,
Http3ErrorCode
.InternalError, abortReason);