Both are fixed windows that open with the first request and reset when they expire. Limits apply to the space, not the key, so creating more keys does not increase throughput.
Headers
Every response to an authenticated request carries the standardRateLimit-* headers:
Responses sent before the limiter runs, such as
401, 403 and the maintenance 503, do not include them.
Exceeding a limit
When either limit is exhausted the API responds with429 Too Many Requests, a RATE_LIMIT_EXCEEDED error body and a Retry-After header with the number of seconds to wait.
Retry-After before retrying. Do not retry on a fixed interval: a client that ignores the header spends its next window on requests that fail.
Store outages
If the rate limit store cannot be reached the API fails closed and responds with503 Service Unavailable, a SERVICE_UNAVAILABLE error body and a Retry-After header.