You should be able to do it within your plugin. What have you tried?
NodeBB Package Manager, scheduled downtime
Please be advised that our upstream hosting provider has identified a firmware issue with their datacenter switches and will be conducting scheduled maintenance to upgrade them tonight at 22:00 EDT.
The NodeBB Package Manager is one of the affected machines, and may experience up to ten minutes of downtime. Your NodeBB should not experience any undue effects (although the "Download Plugins" list may be empty).