Pregunta de entrevista de Notch

How would you handle a situation where an API endpoint randomly fails?