"X-Shopify-Shop-Api-Call-Limit" for throttled requests ( 429 Too Many Requests ) has value "1/40"

Hey all,

I’ve triggered a Shopify REST API multiple times and the request got throttled. The header info of this throttled request had the value - “X-Shopify-Shop-Api-Call-Limit”: [“1/40”].

However, as per the Shopify document ( reference - https://shopify.dev/api/usage/rate-limits#rest-admin-api-rate-limits ), the request would be throttled once the request goes over a rate limit (example- X-Shopify-Shop-Api-Call-Limit: 40/40 ).

Can someone please help if there is any field in the header information or any way I can identify the throttled requests, and handle such scenarios accordingly.