@page
@using Microsoft.AspNetCore.WebUtilities
@model ErrorModel
@{
	ViewData["Title"] = $"error_{Response.StatusCode}";
}

@if (Response.StatusCode == 200) {
	<h1>No error occured.</h1>
	<p>Why are you here?</p>
}

else {
	<h1>Error @Response.StatusCode: @ReasonPhrases.GetReasonPhrase(Response.StatusCode)</h1>
	if (Response.StatusCode == 404) {
		<p>The page you requested does not exist on this server.</p>
	}
	else {
		<p>An error occurred while processing your request.</p>
	}
}

@if (Model.ShowRequestId) {
	<p>
		<strong>Request ID:</strong> <code>@Model.RequestId</code>
	</p>
}
