[Issue-7027] Goroutine leak for RailsRateLimitedError response
This relates to : #7027
Change Summary
As part of this fix, rate limit check is moved inside parseError to prevent goroutine leaks specifically in the rate-limiting scenario.
Also added a test case which also verifies the difference between the initialGoroutines and finalGoroutines .
Edited by Syed Saif Ali Alvi