Handle 410 responses as 404s

When using bonsai's elasticsearch, indices return 410 (instead of 404) when they haven't been created yet.