57 references to Status403Forbidden
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonRequestHelpers.cs (1)
141return StatusCodes.Status403Forbidden;
Microsoft.AspNetCore.Http.Results (10)
Results.cs (4)
31/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 47/// By default, executing this result returns a <see cref="StatusCodes.Status403Forbidden"/>. Some authentication schemes, such as cookies, 48/// will convert <see cref="StatusCodes.Status403Forbidden"/> to a redirect to show a login page. 56/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
ResultsCache.StatusCodes.cs (2)
112StatusCodes.Status403Forbidden => _status403Forbidden ??= new(StatusCodes.Status403Forbidden),
TypedResults.cs (4)
31/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 47/// By default, executing this result returns a <see cref="StatusCodes.Status403Forbidden"/>. Some authentication schemes, such as cookies, 48/// will convert <see cref="StatusCodes.Status403Forbidden"/> to a redirect to show a login page. 52/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
Microsoft.AspNetCore.Mvc.Core (13)
ControllerBase.cs (12)
2322/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 2336/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 2351/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 2368/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 2378/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default). 2382/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to 2390/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the 2396/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to 2404/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the 2411/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to 2419/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the 2427/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
RequireHttpsAttribute.cs (1)
68filterContext.Result = new StatusCodeResult(StatusCodes.Status403Forbidden);
Microsoft.AspNetCore.Mvc.Core.Test (1)
RequireHttpsAttributeTests.cs (1)
125Assert.Equal(StatusCodes.Status403Forbidden, result.StatusCode);
Microsoft.AspNetCore.Mvc.RazorPages (24)
PageBase.cs (12)
156/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 169/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 183/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 199/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 262/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default). 266/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to 273/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the 279/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to 286/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the 293/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to 300/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the 308/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
PageModel.cs (12)
488/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 501/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 515/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 531/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.Status403Forbidden"/> 594/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default). 598/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to 605/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the 611/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to 618/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the 625/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to 632/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.Status403Forbidden"/> by default) with the 640/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.Status403Forbidden"/> to
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCachePolicyProviderTests.cs (1)
281[InlineData(StatusCodes.Status403Forbidden)]
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMiddlewareTests.cs (1)
619Assert.Equal(StatusCodes.Status403Forbidden, context.Response.StatusCode);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
ResponseCachingPolicyProviderTests.cs (1)
307[InlineData(StatusCodes.Status403Forbidden)]
Microsoft.AspNetCore.Rewrite (1)
UrlActions\ForbiddenAction.cs (1)
12context.HttpContext.Response.StatusCode = StatusCodes.Status403Forbidden;
Microsoft.AspNetCore.Rewrite.Tests (1)
UrlActions\ForbiddenActionTests.cs (1)
21Assert.Equal(StatusCodes.Status403Forbidden, context.HttpContext.Response.StatusCode);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\ReasonPhrases.cs (2)
41private static readonly byte[] _bytesStatus403 = CreateStatusBytes(StatusCodes.Status403Forbidden); 127StatusCodes.Status403Forbidden => _bytesStatus403,
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
79context.Response.StatusCode = StatusCodes.Status403Forbidden;