Dela via


Results.InternalServerError Method

Definition

Overloads

InternalServerError()

Produces a Status500InternalServerError response.

InternalServerError<TValue>(TValue)

Produces a Status500InternalServerError response.

InternalServerError()

Produces a Status500InternalServerError response.

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

Returns

The created IResult for the response.

Applies to

InternalServerError<TValue>(TValue)

Produces a Status500InternalServerError response.

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

Type Parameters

TValue

Parameters

error
TValue

An error object to be included in the HTTP response body.

Returns

The created IResult for the response.

Applies to