I am using the .NET Elasticsearch client v 9.1.0. I want to check when a response represents a guaranteed permanent failure, i.e. a retry would be guaranteed to fail again (e.g. if the request is malformed, the document doesn’t match the mapping, the payload is too large, etc.).
I have the following list of HTTP status codes so far:
- 400 Bad Request
- 404 Not Found
- 405 Method Not Allowed
- 409 Conflict
- 413 Payload Too Large
- 415 Unsupported Media Type
Are there any more? And I’m also not sure about 400: is it guaranteed that this is a permanent failure, or could a 400 also be returned for a transient problem like timeout (and if so, is it possible to differentiate them)?