Skip to content
HALOWERK

Denkwerk

retry header normalize

Parses response headers (and optionally a JSON error body) into limits with remaining quota, reset in seconds and absolute reset time, plus one recommended wait. Supported formats with sources (retrieved 2026-11-01): Retry-After per RFC 9110 (seconds or HTTP-date); OpenAI x-ratelimit-*-requests/-tokens/-project-tokens with Go-style durations; Groq (same names, requests per day, tokens per minute); Anthropic anthropic-ratelimit-* and anthropic-priority-* with RFC 3339 resets; GitHub.

POST https://denk.halowerk.com/v1/retry-header-normalize

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
headersobjectNoResponse headers (case-insensitive names).
statusintegerNo
bodystringNoOptional JSON error body (Google RetryInfo).
providerstringNo
nowstringNoReference time for absolute resets; default now.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "headers": {
      "type": "object",
      "maxProperties": 200,
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 2000
          },
          {
            "type": "number"
          },
          {
            "type": "array",
            "maxItems": 10,
            "items": {
              "type": "string",
              "maxLength": 2000
            }
          }
        ]
      },
      "description": "Response headers (case-insensitive names)."
    },
    "status": {
      "type": "integer",
      "minimum": 100,
      "maximum": 599
    },
    "body": {
      "type": "string",
      "maxLength": 100000,
      "description": "Optional JSON error body (Google RetryInfo)."
    },
    "provider": {
      "type": "string",
      "enum": [
        "auto",
        "openai",
        "groq",
        "anthropic",
        "github",
        "ietf"
      ],
      "default": "auto"
    },
    "now": {
      "type": "string",
      "format": "date-time",
      "description": "Reference time for absolute resets; default now."
    }
  }
}

Open original schema

Published input example

{
  "status": 429,
  "headers": {
    "retry-after": "20",
    "x-ratelimit-limit-requests": "60",
    "x-ratelimit-remaining-requests": "0",
    "x-ratelimit-reset-requests": "20s"
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’