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
RequestId
The unique request identifier, if available. May be null.
public string? RequestId { get; set; }
Property Value
ShowRequestId
Indicates whether a request identifier should be shown.
public bool ShowRequestId { get; }
Property Value
StatusCode
The HTTP status code associated with the error.
public int StatusCode { get; set; }
Property Value
Title
A short title describing the error derived from the StatusCode.
public string Title { get; }