teslamotors / fleet-telemetry

Apache License 2.0
625 stars 66 forks source link

Headers for rate limits #184

Open Urkman opened 1 week ago

Urkman commented 1 week ago

When I call the vehicle_data endpoint and the rate limits are exceeded (response code 429) I get this response headers:

ratelimit-limit : 200
ratelimit-remaining: 0
ratelimit-reset: 14692
retry-after: 146092

But when the limits are fine (response code 200), we don't get these headers :( But we need them to calculate how many requests are left for the day. Especially these two headers:

ratelimit-remaining: 0
ratelimit-reset: 14692

So, it would be nice to get these header also on an 200er response :)