Initial import

Initial import of function I wrote for testing when a service is unavailable