Like Rich states, maybe you can attempt to access the service before really needing it. Perhaps you can alter the code snippit found in the API documentation for ESRI.Request to verify that the service is up and running: esri.request
Just make any kind of request to the service and handle the response or (importantly in your case!) the error.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.