I would like to show a notification to users on 5xx errors but as it is now I can't figure out a way to avoid showing it for only the last retry.
The code could live in either afterResponse or beforeError hook and from there I can get the current retry config ex: error.options.retry.limit but as far as I can tell no way to know if the request in question is last retry in the series.
Thank You for this useful and to the point library.