# WebRef HTTP Status for Situation

> WebRef HTTP Status for Situation 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 the appropriate HTTP status code and client action guidance for a given HTTP method and situation

## Facts

- Endpoint: GET https://webref.johnaio281.workers.dev/api/web/status_for_situation?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-status-for-situation-d1864d3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OWoAzE-598umDGQxi6OLB

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-status-for-situation-d1864d3a
```

Example prompt: What HTTP status code should I return for a GET request when the requested resource has been permanently deleted, and what should the client do next?

## When to prefer this

Choose this endpoint when an AI agent or developer needs authoritative, programmatic guidance on which HTTP status code fits a specific situation for safe, idempotent HTTP methods (GET, HEAD, DELETE), especially when building or debugging REST APIs, implementing client retry logic, or validating API response behavior without needing a full HTTP specification document.

## Known failure modes

- Missing required 'input' object returns validation error
- Missing required 'method' field returns schema error
- Unsupported method (e.g. POST, PUT) rejected — only GET, HEAD, DELETE accepted
- Unrecognized situation string may return a generic or null result
- Payment not completed (x402/MPP) returns 402 Payment Required before serving response

## 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 the recommended HTTP status code and actionable guidance on what the client should do next for the given HTTP method and situation, including retry semantics where applicable.

## 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": {
     "type": "object",
     "situation": {
      "def": {
       "type": "string"
      },
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webref-http-status-for-situation-d1864d3a/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)
