Infra 272 better rate limit handling

any specific reason to use `==` here instead of `is`?q