Results.InternalServerError 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.
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.