Table of Contents

Class StatusCodeModel

Namespace
Fdyay.IdentityServer.UI.Pages
Assembly
Fdyay.IdentityServer.UI.dll

The branded page for any non-protocol HTTP status code, including the 500 an unhandled exception produces. It describes nothing but the status code itself — no error context, no exception detail, no stack trace.

public class StatusCodeModel : PageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
Inheritance
StatusCodeModel
Implements
Inherited Members

Properties

Code

The status code being reported, when the re-executed path carried one.

public int? Code { get; }

Property Value

int?

Description

The one-line explanation shown under the headline.

public string Description { get; }

Property Value

string

Title

The headline for the status code.

public string Title { get; }

Property Value

string

Methods

OnGet(int?)

Sets the headline and explanation for code: its own for 404, 403 and 500, a generic pair otherwise.

public void OnGet(int? code)

Parameters

code int?

The status code, from the /status-code/{code} route the re-executed request carries; null when there is none.