{"uid":"cap_OWoAzE-598umDGQxi6OLB","slug":"webref-http-status-for-situation-d1864d3a","name":"WebRef HTTP Status for Situation","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/status_for_situation?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":{"type":"object","situation":{"def":{"type":"string"},"type":"string"}}},"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_JGw8Qo-3zUftMvvru9r09","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 the appropriate HTTP status code and client action guidance for a given HTTP method and situation","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"API error code selection for developers","prompt":"I'm building a REST API — for a GET request where the resource exists but the user's token doesn't have permission to view it, what HTTP status code should I return and what should the client do?"},{"title":"Client retry logic for safe requests","prompt":"My HTTP client got an unexpected response to a GET request — what status code should I expect if the server is temporarily overloaded, and should I retry automatically?"},{"title":"Choosing status for conditional DELETE","prompt":"I'm handling a DELETE request where the resource was already deleted by someone else — what's the correct HTTP status code to send back and what should the client do with it?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:39:45.860Z","isFirstParty":false,"canonicalSlug":"webref-http-status-for-situation-d1864d3a"}