45 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)
183if (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.Http (1)
Builder\ApplicationBuilder.cs (1)
186context.Response.StatusCode = StatusCodes.Status404NotFound;
Microsoft.AspNetCore.Http.Connections (7)
Internal\HttpConnectionContext.cs (1)
527nonClonedContext.Response.StatusCode = StatusCodes.Status404NotFound;
Internal\HttpConnectionDispatcher.cs (6)
480context.Response.StatusCode = StatusCodes.Status404NotFound; 498context.Response.StatusCode = StatusCodes.Status404NotFound; 507context.Response.StatusCode = StatusCodes.Status404NotFound; 576context.Response.StatusCode = StatusCodes.Status404NotFound; 795context.Response.StatusCode = StatusCodes.Status404NotFound; 819context.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.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 ||