a bit of error checking for unreachable static file server or API server