Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ErrorController.cs

using Microsoft.AspNetCore.Mvc;

namespace Nop.Web.Controllers;

//do not inherit it from BasePublicController. otherwise a lot of extra action filters will be called
//they can create guest account(s), etc
public partial class ErrorController : Controller
{
    public virtual IActionResult Error()
    {
        Response.StatusCode = StatusCodes.Status500InternalServerError;
        return File("ErrorPage.htm", "text/html");
    }
}