@page "/Error" @inject ILocalizationService Loc @rendermode InteractiveServer @Loc["page.title.error"]

@Loc["error.heading"]

@Loc["error.message"]

@Loc["error.link.back_to_home"] @code { [CascadingParameter] private HttpContext? HttpContext { get; set; } protected override void OnInitialized() { if (HttpContext is not null) { HttpContext.Response.StatusCode = StatusCodes.Status500InternalServerError; } } }