# WebRef HTTP Retry Advice

> WebRef HTTP Retry Advice is a paid API for AI agents from webref.johnaio281.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Returns retry semantics and client action guidance for a given HTTP status code and request method combination

## Facts

- Endpoint: GET https://webref.johnaio281.workers.dev/api/web/retry_advice?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webref-http-retry-advice-b381ccb2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9D6vJESz8x7x2lgEjjcCn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability webref-http-retry-advice-b381ccb2
```

Example prompt: I just got a 503 back from a GET request — should I retry it, and if so, how should I handle the backoff?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webref-http-retry-advice-b381ccb2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webref.johnaio281.workers.dev](https://www.zero.xyz/host/webref.johnaio281.workers.dev/llms.txt)
