I change the retry function to wait some specific time when a retry-after header is present in a internal error response