55 references to Status403Forbidden
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonRequestHelpers.cs (1)
141
return StatusCodes.
Status403Forbidden
;
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionDispatcher.cs (3)
210
await WriteRefreshErrorAsync(context, StatusCodes.
Status403Forbidden
, "permission_change_rejected");
988
await WriteRefreshErrorAsync(context, StatusCodes.
Status403Forbidden
, "permission_change_rejected");
1190
context.Response.StatusCode = 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)
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)
2326
/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.
Status403Forbidden
"/>
2340
/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.
Status403Forbidden
"/>
2355
/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.
Status403Forbidden
"/>
2372
/// <see cref="StatusCodes.Status401Unauthorized"/> and <see cref="StatusCodes.
Status403Forbidden
"/>
2382
/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.
Status403Forbidden
"/> by default).
2386
/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.
Status403Forbidden
"/> to
2394
/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.
Status403Forbidden
"/> by default) with the
2400
/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.
Status403Forbidden
"/> to
2408
/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.
Status403Forbidden
"/> by default) with the
2415
/// Some authentication schemes, such as cookies, will convert <see cref="StatusCodes.
Status403Forbidden
"/> to
2423
/// Creates a <see cref="ForbidResult"/> (<see cref="StatusCodes.
Status403Forbidden
"/> by default) with the
2431
/// 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
;