I want to create custom error pages for HTTP Responses of 500, 503, etc. in a Magento 2 project. After turning on "ProxyErrorOverride" from the virtual host, I found that we can use the below code in HTACCESS to redirect to the custom pages.
# for Internal Server Error ErrorDocument 500 /505.html # for Service Unavailable ErrorDocument 503 /503.html # for Gateway Timeout ErrorDocument 504 /504.html
But when I turn on "ProxyErrorOverride", the server sets its own 404 page instead of Magento's 404 page.
Can anyone help me to create custom pages like 500, 503, etc. with Magento's 404 page?