You can use the file matcher to check for the existence of a file on disk:
@hasMaintenance file /var/www/service/maintenance
respond @hasMaintenance "We're under maintenance!" 503
If you need to emit a 503 error to trigger an HTML page to be rendered, you can use the error directive instead of respond, then handle the error with handle_errors to render the page with file_server: