I need Faraday
to retry my POST request every time when it gets 202 http status as a response. I am aware of this module, yet I don't really get how to make use of it, since 202 doesn't throw an error or something and retry_if: block is not called for 202 response.
I had some success with this middleware but it resends request only once, while 202 response may occur 2 and more times in a row.
I wonder if someone could show me a way to do it using retry
module or Faraday middleware.