@model string @{ ViewData["Title"] = "Error"; }

Error.

An error occurred while processing your request.

@if (!string.IsNullOrEmpty(Model)) {

Error details: @Model

}