There are lot of blogs which tell us how to create static error pages for Sitecore SXA sites.
I know that everyone follows the Sitecore Documentation here – https://doc.sitecore.com/xp/en/developers/sxa/18/sitecore-experience-accelerator/generate-a-custom-static-error-page.html
But everyone doesn’t know is that this is not straight forward every time. We faced some weird issues in our project and had to use a little trick which I would like to share with you.
First remember that Page Not Found Link is content manageable and the Server Error Page is not. What I mean is that if you create 404 page then you can update it’s content at runtime in Sitecore whereas for Error 500 page, you can update the content in Sitecore but you need few additional steps before you could see it on Frontend.
Trick for Server Error Page to work:
- Go to
/sitecore/content/{Tenant}/{Site}/Settings/Site Grouping/DemoSite
- Publish your website completely or you will face publishing issue in error handling.
- Select the tab from top navigation “ERROR HANDLING”
- Click on Generate static page.

Reference Link: https://isaadansari.wordpress.com/2018/07/04/setting-up-the-not-found-and-internal-server-error-pages-with-sxa-how-to-implement-series/
Hope it helps!!
Thank you.. Keep Learning.. Keep Sitecoring.. 🙂