Use the customerror module and its required modules
Create custom error pages for these errors, then specify the location of these error files in the admin settings.
Create custom error pages for these errors, then specify the location of these error files in the configuration file.
We can not customize error pages.