This project is read-only.

404 page not found and other pages

Topics: Core, Customizing Orchard, General
Aug 27, 2012 at 4:24 PM

How can I show a custom page for such pages?

Currently when I throw a HttpException(404) (for example) it just shows the message "Oops. Something went wrong ... sorry"

Whenever such an exception is thrown from an action I want to catch that and show a propper 404 page.

Any pointers?

Aug 27, 2012 at 10:21 PM

404 should show a not found page, not that with oops, that one is for 503... There is a NotFound.cshtml to override the 404 page, the question is how did you manage to get an 503 for a 404?