Do you have a webserver in front of mendix? You can easily route your url to a html page with your maintenance message in a webserver like apache.
A possible direction you can investigate is handling the (40x?) errors returned from the server and redirect to a page in that case.
This can only be done on a web server environment with static pages, standalone the web server will not serve pages when it is not running.