﻿@model int?
@{
    ViewBag.Title = "Error";
    ViewBag.Message = ViewBag.Message ?? "An error occurred while processing your request.";
}
<h1 class="text-danger">Error (HTTP @(Model ?? 500))</h1>
<h2 class="text-danger">@ViewBag.Message</h2>

﻿@model int?
@{
    ViewBag.MetaDescription = string.Empty;
    ViewBag.MetaRobots = "NOINDEX";
    ViewBag.Title = "Error";
    ViewBag.Message = ViewBag.Message ?? "An error occurred while processing your request.";
}
<h1 class="text-danger">Error (HTTP @(Model ?? 500))</h1>
<h2 class="text-danger">@ViewBag.Message</h2>

Add NOINDEX to error pages
Add NOINDEX to error pages

Add NOINDEX for robots to error pages.
