Share via


InternalServerError Class

Definition

An IResult that on execution will write an object to the response with Internal Server Error (500) status code.

public sealed class InternalServerError : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type InternalServerError = class
    interface IResult
    interface IEndpointMetadataProvider
    interface IStatusCodeHttpResult
Public NotInheritable Class InternalServerError
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult
Inheritance
InternalServerError
Implements

Properties

StatusCode

Gets the HTTP status code: Status500InternalServerError

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Explicit Interface Implementations

IEndpointMetadataProvider.PopulateMetadata(MethodInfo, EndpointBuilder)

Populates metadata for the related Endpoint and MethodInfo.

IStatusCodeHttpResult.StatusCode

Applies to