Set up maintenance Page

Today, a worker would be the most reliable way to achieve this on Cloudflare. If you could guarantee your origin would return a specific HTTP response code, you could leverage Custom Error Pages, but workers is preferred here and gives you more control.

There’s some resources online about this:

And also another topic matching yours on this community: