How to configure Virtualmin to return non-200 status code on a disabled site

By default Virtualmin locks out and replaces a disabled site with a “virtualmin here; this site has been….” page, but it serves this page with a 200 OK status code to all visitors. This can be problematic if whatever content was on that site is used elsewhere and that elsewhere checks this status code.