@page
@model Healox.PermissionServer.Sample.IdentityServer.Pages.Error.Index

<div class="error-page">
    <div class="lead">
        <h1>Error</h1>
    </div>

    <div class="row">
        <div class="col-sm-6">
            <div class="alert alert-danger">
                Sorry, there was an error

                @if (Model.View.Error != null)
                {
                    <strong>
                        <em>
                            : @Model.View.Error.Error
                        </em>
                    </strong>

                    if (Model.View.Error.ErrorDescription != null)
                    {
                        <div>@Model.View.Error.ErrorDescription</div>
                    }
                }
            </div>

            @if (Model?.View?.Error?.RequestId != null)
            {
                <div class="request-id">Request Id: @Model.View.Error.RequestId</div>
            }
        </div>
    </div>
</div>
