51 references to 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)
112
StatusCodes.
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)
68
filterContext.Result = new StatusCodeResult(StatusCodes.
Status403Forbidden
);
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.Rewrite (1)
UrlActions\ForbiddenAction.cs (1)
12
context.HttpContext.Response.StatusCode = StatusCodes.
Status403Forbidden
;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\ReasonPhrases.cs (2)
41
private static readonly byte[] _bytesStatus403 = CreateStatusBytes(StatusCodes.
Status403Forbidden
);
127
StatusCodes.
Status403Forbidden
=> _bytesStatus403,
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
79
context.Response.StatusCode = StatusCodes.
Status403Forbidden
;