31 references to Status401Unauthorized
Aspire.Dashboard (2)
Api\ApiAuthenticationHandler.cs (2)
114
Context.Response.StatusCode = StatusCodes.
Status401Unauthorized
;
132
Context.Response.StatusCode = StatusCodes.
Status401Unauthorized
;
Microsoft.AspNetCore.Http.Results (8)
Results.cs (2)
31
/// <see cref="StatusCodes.
Status401Unauthorized
"/> and <see cref="StatusCodes.Status403Forbidden"/>
613
/// Produces a <see cref="StatusCodes.
Status401Unauthorized
"/> response.
ResultsCache.StatusCodes.cs (2)
110
StatusCodes.
Status401Unauthorized
=> _status401Unauthorized ??= new(StatusCodes.
Status401Unauthorized
),
TypedResults.cs (2)
31
/// <see cref="StatusCodes.
Status401Unauthorized
"/> and <see cref="StatusCodes.Status403Forbidden"/>
667
/// Produces a <see cref="StatusCodes.
Status401Unauthorized
"/> response.
UnauthorizedHttpResult.cs (2)
23
/// Gets the HTTP status code: <see cref="StatusCodes.
Status401Unauthorized
"/>
25
public int StatusCode => StatusCodes.
Status401Unauthorized
;
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
115
return TypedResults.Problem(result.ToString(), statusCode: StatusCodes.
Status401Unauthorized
);
Microsoft.AspNetCore.Mvc.Core (8)
ControllerBase.cs (6)
1711
/// Creates an <see cref="UnauthorizedResult"/> that produces a <see cref="StatusCodes.
Status401Unauthorized
"/> response.
1719
/// Creates an <see cref="UnauthorizedObjectResult"/> that produces a <see cref="StatusCodes.
Status401Unauthorized
"/> response.
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"/>
UnauthorizedObjectResult.cs (1)
15
private const int DefaultStatusCode = StatusCodes.
Status401Unauthorized
;
UnauthorizedResult.cs (1)
16
private const int DefaultStatusCode = StatusCodes.
Status401Unauthorized
;
Microsoft.AspNetCore.Mvc.RazorPages (10)
PageBase.cs (5)
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"/>
1159
/// Creates an <see cref="UnauthorizedResult"/> that produces an <see cref="StatusCodes.
Status401Unauthorized
"/> response.
PageModel.cs (5)
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"/>
1516
/// Creates an <see cref="UnauthorizedResult"/> that produces an <see cref="StatusCodes.
Status401Unauthorized
"/> response.
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\ReasonPhrases.cs (2)
39
private static readonly byte[] _bytesStatus401 = CreateStatusBytes(StatusCodes.
Status401Unauthorized
);
125
StatusCodes.
Status401Unauthorized
=> _bytesStatus401,