Created
October 10, 2018 09:33
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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