49 references to Status404NotFound
Aspire.Dashboard (5)
DashboardEndpointsBuilder.cs (4)
153Status = StatusCodes.Status404NotFound 184Status = StatusCodes.Status404NotFound 205Status = StatusCodes.Status404NotFound 223Status = StatusCodes.Status404NotFound
Utils\RoutingExtensions.cs (1)
23context.Response.StatusCode = StatusCodes.Status404NotFound;
Microsoft.AspNetCore.Components.Endpoints (2)
RazorComponentEndpointInvoker.cs (1)
191if (context.Response.StatusCode == StatusCodes.Status404NotFound &&
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
84_httpContext.Response.StatusCode = StatusCodes.Status404NotFound;
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
218if (result != ExceptionHandledType.Unhandled || _options.StatusCodeSelector != null || context.Response.StatusCode != StatusCodes.Status404NotFound || _options.AllowStatusCode404Response)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonRequestHelpers.cs (1)
137return StatusCodes.Status404NotFound;
Microsoft.AspNetCore.Http (1)
Builder\ApplicationBuilder.cs (1)
186context.Response.StatusCode = StatusCodes.Status404NotFound;
Microsoft.AspNetCore.Http.Connections (9)
Internal\HttpConnectionContext.cs (1)
654nonClonedContext.Response.StatusCode = StatusCodes.Status404NotFound;
Internal\HttpConnectionDispatcher.cs (8)
147await WriteRefreshErrorAsync(context, StatusCodes.Status404NotFound, "refresh_disabled"); 162await WriteRefreshErrorAsync(context, StatusCodes.Status404NotFound, "connection_not_found"); 720context.Response.StatusCode = StatusCodes.Status404NotFound; 738context.Response.StatusCode = StatusCodes.Status404NotFound; 747context.Response.StatusCode = StatusCodes.Status404NotFound; 816context.Response.StatusCode = StatusCodes.Status404NotFound; 1168context.Response.StatusCode = StatusCodes.Status404NotFound; 1192context.Response.StatusCode = StatusCodes.Status404NotFound;
Microsoft.AspNetCore.Http.Results (12)
NotFound.cs (3)
26/// Gets the HTTP status code: <see cref="StatusCodes.Status404NotFound"/> 28public int StatusCode => StatusCodes.Status404NotFound; 53builder.Metadata.Add(new ProducesResponseTypeMetadata(StatusCodes.Status404NotFound, typeof(void)));
NotFoundOfT.cs (3)
37/// Gets the HTTP status code: <see cref="StatusCodes.Status404NotFound"/> 39public int StatusCode => StatusCodes.Status404NotFound; 67builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status404NotFound, ContentTypeConstants.ApplicationJsonContentTypes));
Results.cs (2)
597/// Produces a <see cref="StatusCodes.Status404NotFound"/> response. 605/// Produces a <see cref="StatusCodes.Status404NotFound"/> response.
ResultsCache.StatusCodes.cs (2)
113StatusCodes.Status404NotFound => _status404NotFound ??= new(StatusCodes.Status404NotFound),
TypedResults.cs (2)
653/// Produces a <see cref="StatusCodes.Status404NotFound"/> response. 659/// Produces a <see cref="StatusCodes.Status404NotFound"/> response.
Microsoft.AspNetCore.Mvc.Core (10)
ControllerBase.cs (2)
1727/// Creates a <see cref="NotFoundResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response. 1735/// Creates a <see cref="NotFoundObjectResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response.
DefaultApiConventions.cs (6)
20[ProducesResponseType(StatusCodes.Status404NotFound)] 34[ProducesResponseType(StatusCodes.Status404NotFound)] 81[ProducesResponseType(StatusCodes.Status404NotFound)] 101[ProducesResponseType(StatusCodes.Status404NotFound)] 121[ProducesResponseType(StatusCodes.Status404NotFound)] 142[ProducesResponseType(StatusCodes.Status404NotFound)]
NotFoundObjectResult.cs (1)
15private const int DefaultStatusCode = StatusCodes.Status404NotFound;
NotFoundResult.cs (1)
16private const int DefaultStatusCode = StatusCodes.Status404NotFound;
Microsoft.AspNetCore.Mvc.RazorPages (4)
PageBase.cs (2)
460/// Creates an <see cref="NotFoundResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response. 467/// Creates an <see cref="NotFoundObjectResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response.
PageModel.cs (2)
767/// Creates an <see cref="NotFoundResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response. 774/// Creates an <see cref="NotFoundObjectResult"/> that produces a <see cref="StatusCodes.Status404NotFound"/> response.
Microsoft.AspNetCore.OpenApi (1)
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (1)
41context.Response.StatusCode = StatusCodes.Status404NotFound;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\ReasonPhrases.cs (2)
42private static readonly byte[] _bytesStatus404 = CreateStatusBytes(StatusCodes.Status404NotFound); 128StatusCodes.Status404NotFound => _bytesStatus404,
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\ResponseStreamWrapper.cs (1)
106response.StatusCode == StatusCodes.Status404NotFound ||