404 error page

I have created an error PHP file so if there is any problem when charging a section of the website htaccess redirects to it with the following code but is not working:

ErrorDocument 404 /error.php

The file is named that way. What type error should I use for example when I want to show to the user that the webpage is on maintenance?

A 404 error is for a page “Not Found”. The appropriate response would be 503:

The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.