TypedResults.Unauthorized Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Produces a Status401Unauthorized response.
public static Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult Unauthorized ();
static member Unauthorized : unit -> Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult
Public Shared Function Unauthorized () As UnauthorizedHttpResult
Returns
The created UnauthorizedHttpResult for the response.