TypedResults.NotFound Method

Definition

Overloads

NotFound()

Produces a Status404NotFound response.

NotFound<TValue>(TValue)

Produces a Status404NotFound response.

NotFound()

Produces a Status404NotFound response.

public static Microsoft.AspNetCore.Http.HttpResults.NotFound NotFound ();
static member NotFound : unit -> Microsoft.AspNetCore.Http.HttpResults.NotFound
Public Shared Function NotFound () As NotFound

Returns

The created NotFound for the response.

Applies to

NotFound<TValue>(TValue)

Produces a Status404NotFound response.

public static Microsoft.AspNetCore.Http.HttpResults.NotFound<TValue> NotFound<TValue> (TValue? value);
static member NotFound : 'Value -> Microsoft.AspNetCore.Http.HttpResults.NotFound<'Value>
Public Shared Function NotFound(Of TValue) (value As TValue) As NotFound(Of TValue)

Type Parameters

TValue

The type of object that will be JSON serialized to the response body.

Parameters

value
TValue

The value to be included in the HTTP response body.

Returns

The created NotFound<TValue> for the response.

Applies to