{"uid":"cap_y88zs9MgITC3oJ6EsQwFJ","slug":"delx-commerce-http-status-class-classifier-37034180","name":"Delx Commerce HTTP Status Class Classifier","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/status-class?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"status_code":{"type":"integer","description":"Input field: status code."}}},"responseSchema":{"type":"json","example":{"ok":true,"family":5,"schema":"delx/util-status-class/v1","success":false,"class_label":"server_error","status_code":503,"retryable_hint":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OmQmTxfxDSUJwGLdc7StK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies an HTTP status code into its family, class label, success flag, and retryability hint","exampleAgentPrompt":"Can you classify HTTP status code 503 — tell me what family it belongs to, whether it's a success, what the class label is, and whether I should retry?","exampleUseCases":[{"title":"Retry logic in an agent workflow","prompt":"My API call just returned a 503 — should I retry it, and what class of error is that exactly?"},{"title":"Debugging an unexpected redirect","prompt":"I got a 301 back from a request. Is that considered a success? What HTTP family does it fall into?"},{"title":"Handling auth failures intelligently","prompt":"I received a 401 response — is that a client error or server error, and does it make sense to retry automatically?"}],"resultDescription":"Returns a JSON object with: whether the response is OK (boolean), the numeric HTTP status family (e.g. 4 for 4xx, 5 for 5xx), a machine-readable class label (e.g. 'server_error', 'client_error', 'success'), a boolean indicating whether the status reflects success, the echoed status code, and a retryable_hint boolean indicating whether the caller should consider retrying.","failureModes":["Missing or invalid status_code field returns an error","Non-integer input may cause a validation failure","Out-of-range status codes (e.g. 0, 9999) may not be recognized","Payment not completed (x402 flow not fulfilled) results in 402 response before classification"],"whenToPreferThis":"Use this endpoint when you need a structured, normalized interpretation of an HTTP status code — especially for agent workflows that need to decide on retry logic, log errors with human-readable labels, or branch behavior based on success vs failure vs redirect. Prefer it over hardcoding status code logic inline, or when you need a consistent schema (e.g. delx/util-status-class/v1) for downstream processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:43.233Z","isFirstParty":false,"canonicalSlug":"delx-commerce-http-status-class-classifier-37034180"}