Create custom error page

Silverstripe Version: 4

I’m trying to find examples on how to change the error page. From what I understand, was this possible by adding a ErrorPage.ss in Silverstripe v3. But it seems like this has been changed in Silverstripe v4 and the errorpage is moved to a module.

But I can’t find out how to actually make a custom ErrorPage. Is this documented somewhere?

You should still be able to provide your own ErrorPage.ss template, and I think it should be as easy as duplicating your Page.ss template and changing the filename. If that doesn’t work you could try tweaking the directory structure. Try storing the template at templates/SilverStripe/ErrorPage/ErrorPage.ss within your project or themes directory.