Rate limiting Response handling pseudo code

It seems that I got the similar issue: Response Headers return null