TypedResults.UnprocessableEntity Method

Definition

Overloads

UnprocessableEntity()

Produces a Status422UnprocessableEntity response.

UnprocessableEntity<TValue>(TValue)

Produces a Status422UnprocessableEntity response.

UnprocessableEntity()

Produces a Status422UnprocessableEntity response.

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

Returns

The created UnprocessableEntity for the response.

Applies to

UnprocessableEntity<TValue>(TValue)

Produces a Status422UnprocessableEntity response.

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

Type Parameters

TValue

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

Parameters

error
TValue

The value to be included in the HTTP response body.

Returns

The created UnprocessableEntity<TValue> for the response.

Applies to