TypedResults.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.HttpResults.InternalServerError InternalServerError ();
static member InternalServerError : unit -> Microsoft.AspNetCore.Http.HttpResults.InternalServerError
Public Shared Function InternalServerError () As InternalServerError
Returns
The created InternalServerError for the response.
Applies to
InternalServerError<TValue>(TValue)
Produces a Status500InternalServerError response.
public static Microsoft.AspNetCore.Http.HttpResults.InternalServerError<TValue> InternalServerError<TValue> (TValue? error);
static member InternalServerError : 'Value -> Microsoft.AspNetCore.Http.HttpResults.InternalServerError<'Value>
Public Shared Function InternalServerError(Of TValue) (error As TValue) As InternalServerError(Of TValue)
Type Parameters
- TValue
The type of error 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 InternalServerError<TValue> for the response.