Table of Contents

Class ErrorViewModel

Namespace
ProjectTemplate.Web.Models
Assembly
ProjectTemplate.Web.dll

View model for error pages that exposes request and status information.

public class ErrorViewModel
Inheritance
ErrorViewModel
Inherited Members

Properties

Message

A user-friendly message describing the error derived from the StatusCode.

public string Message { get; }

Property Value

string

RequestId

The unique request identifier, if available. May be null.

public string? RequestId { get; set; }

Property Value

string

ShowRequestId

Indicates whether a request identifier should be shown.

public bool ShowRequestId { get; }

Property Value

bool

StatusCode

The HTTP status code associated with the error.

public int StatusCode { get; set; }

Property Value

int

Title

A short title describing the error derived from the StatusCode.

public string Title { get; }

Property Value

string