StatusCodePagesOptions Class

Definition

public ref class StatusCodePagesOptions
public class StatusCodePagesOptions
type StatusCodePagesOptions = class
Public Class StatusCodePagesOptions
Inheritance
StatusCodePagesOptions

Constructors

Name Description
StatusCodePagesOptions()

Creates a default StatusCodePagesOptions whose handler attempts to generate a ProblemDetails response using IProblemDetailsService, and falls back to a plaintext response containing the status code and reason phrase when that service is unavailable or cannot write a response.

Properties

Name Description
CreateScopeForStatusCodePages

Gets or sets whether the handler needs to create a separate IServiceProvider scope and replace it on RequestServices when re-executing the request.

HandleAsync

The handler that generates the response body for the given StatusCodeContext. By default this attempts to generate a ProblemDetails response using IProblemDetailsService and falls back to a plain text response that includes the status code.

Applies to