Error handling when API server is offline.