Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Created October 10, 2018 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sitefinitySDK/4803b61aad3fae2f15d7a58473421f57 to your computer and use it in GitHub Desktop.
Save sitefinitySDK/4803b61aad3fae2f15d7a58473421f57 to your computer and use it in GitHub Desktop.
SF_11.0, SF_11.1, SF_11.2, SF_12.0, SF_12.1, SF_12.2, SF_13.0, SF_13.1, SF_13.2, SF_13.3 - https://www.progress.com/documentation/sitefinity-cms/change-the-response-status-of-the-custom-error-page-of-mvc-pages-mvc
using System.Web.Mvc;
namespace SitefinityWebApp.Mvc.Controllers
{
public class SampleController_404_Code : Controller
{
// GET: SampleController_404_Code
[HandleHttpStatusCodeAttribute(StatusCode = 404, Status = "404 Not found")]
public ActionResult Index()
{
return View("Error_404");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment