Skip to content

Rate Limited Cooldown

A copy-paste error & 404 pages component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Error & 404 PagesHTMLCSSany framework

You've hit the rate limit. Please wait a moment before trying again.

Copy into your project

HTML
<div class="nuda-ep2-rate-limited">
  <div class="nuda-ep2-rate-limited__ring" aria-hidden="true">
    <svg viewBox="0 0 64 64">
      <circle class="nuda-ep2-rate-limited__track" cx="32" cy="32" r="27" />
      <circle class="nuda-ep2-rate-limited__bar" cx="32" cy="32" r="27" />
    </svg>
    <span class="nuda-ep2-rate-limited__code">429</span>
  </div>
  <p class="nuda-ep2-rate-limited__title" role="alert">Too many requests</p>
  <p class="nuda-ep2-rate-limited__sub">You've hit the rate limit. Please wait a moment before trying again.</p>
  <button class="nuda-ep2-rate-limited__btn" type="button">Try again</button>
</div>
CSS
.nuda-ep2-rate-limited {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 20px;
  background: #101010;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  width: 100%;
  max-width: 260px;
  text-align: center;
  font-family: ui-sans-serif,system-ui;
}

.nuda-ep2-rate-limited__ring {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nuda-ep2-rate-limited__ring svg {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}

.nuda-ep2-rate-limited__track {
  fill: none;
  stroke: rgba(255,255,255,.08);
  stroke-width: 4;
}

.nuda-ep2-rate-limited__bar {
  fill: none;
  stroke: #e4ff54;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 169.6;
  stroke-dashoffset: 169.6;
  animation: _nuda-ep2ratelimited-cooldown 4s linear infinite;
}

.nuda-ep2-rate-limited__code {
  position: absolute;
  font-size: 13px;
  font-weight: 800;
  color: #fafafa;
  letter-spacing: .02em;
}

.nuda-ep2-rate-limited__title {
  margin: 4px 0 0;
  color: #fafafa;
  font-size: 14px;
  font-weight: 700;
}

.nuda-ep2-rate-limited__sub {
  margin: 0;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.5;
  max-width: 210px;
}

.nuda-ep2-rate-limited__btn {
  margin-top: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(228,255,84,.3);
  background: rgba(228,255,84,.1);
  color: #e4ff54;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.nuda-ep2-rate-limited__btn:hover {
  background: rgba(228,255,84,.18);
}

.nuda-ep2-rate-limited__btn:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

@keyframes _nuda-ep2ratelimited-cooldown {
  0% {
    stroke-dashoffset: 169.6;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-ep2-rate-limited__bar {
    animation: none;
    stroke-dashoffset: 60;
  }
}

How to use Rate Limited Cooldown

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More error & 404 pages components

← Browse all NudaUI components