{"uid":"cap_9D6vJESz8x7x2lgEjjcCn","slug":"webref-http-retry-advice-b381ccb2","name":"WebRef HTTP Retry Advice","description":"Web standards and time reference for AI agents: HTTP status codes with what the client should do, retry semantics, MIME types and content-type matching, request-method safety and idempotency, plus deadline arithmetic - time until a moment, weekday and business-day checks, duration conversion and Unix timestamps. Pay per call in USDC on Base via x402 or USDC on Tempo via MPP. No signup, no API key, no KYC.","url":"https://webref.johnaio281.workers.dev/api/web/retry_advice?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"code":{"def":{"type":"union","options":[{"def":{"type":"number","checks":[]},"type":"number","isFinite":true},{"def":{"type":"string"},"type":"string"}]},"type":"union","options":[{"def":{"type":"number","checks":[]},"type":"number","isFinite":true},{"def":{"type":"string"},"type":"string"}]},"type":"object","idempotent":{"def":{"type":"default","innerType":{"def":{"type":"boolean"},"type":"boolean"},"defaultValue":true},"type":"default"}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IekBsSnLnZivAYISB6B6H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns retry semantics and client action guidance for a given HTTP status code and request method combination","exampleAgentPrompt":"I just got a 503 back from a GET request — should I retry it, and if so, how should I handle the backoff?","exampleUseCases":[{"title":"API retry logic in an agent","prompt":"My agent got a 429 response on a GET request — is it safe to retry, and what retry strategy should I follow?"},{"title":"Safe retries for destructive methods","prompt":"I'm making a DELETE request and got back a 503 — should I automatically retry it or is that dangerous?"},{"title":"Debugging unexpected HTTP errors","prompt":"What should my HTTP client do when it receives a 502 for a HEAD request — retry immediately, back off, or give up?"}],"resultDescription":"Returns structured retry advice for the given HTTP method and status code, including whether the request is safe to retry, suggested wait/backoff strategy, and whether the operation is considered idempotent, helping agents and HTTP clients make correct decisions about request retries.","failureModes":["Missing required 'input.method' or 'input.type' fields returns a validation error","Providing an HTTP method not in the allowed enum (GET, HEAD, DELETE) returns an error","Providing a non-HTTP type value returns an error","Invalid or unrecognized status code may return a generic or null advice response","Payment failure via x402 or MPP results in 402 response with no data returned"],"whenToPreferThis":"Use this endpoint when an AI agent or HTTP client needs authoritative, structured guidance on whether and how to retry a failed HTTP request for safe/idempotent methods (GET, HEAD, DELETE). Prefer this over hardcoded retry logic or LLM reasoning about HTTP semantics, especially when correctness and standards-compliance matter. Particularly useful for agents operating autonomously that need to handle transient failures without human guidance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:10.295Z","isFirstParty":false,"canonicalSlug":"webref-http-retry-advice-b381ccb2"}