Skip to main content

SECONDARY_WORDINGS

Constant SECONDARY_WORDINGS 

Source
pub const SECONDARY_WORDINGS: [&str; 5];
Expand description

The wordings GitHub answers a secondary rate limit with.

It sends them under a forbidden status, under a too-many-requests status, and inside the errors of a successful response, which is why the text is what this matches on rather than the status. abuse detection is the wording GitHub used before the limiter was renamed and still returns from some endpoints; submitted too quickly is what a burst of content creation is refused with.

This is GitHub’s vocabulary rather than this source’s, so it is pinned rather than remembered: tests/fixtures/rate-limits.json records where each wording was read and when, and the drift gate reconciles the two lists both ways. Public for that gate alone — a caller has no use for it, and matching on a refusal is this source’s job.