The lines “alternate response without custom page” may be used instead of the custom maintenance page (makes it a bit easier)

Then, with that code in place, your server is going to respond with the file, maintenance.html, if it exists. You can either delete the ErrorDocument directive or create a maintenance.html file. Here is an example for a very basic maintenance page: