81trust / 100

Dev Http Status Codes

by AgentTools in Developer tools

x402 APIPassing, checked 6 min ago

Reference database of HTTP response status codes with phrase, category and explanation. Look up a specific code or list a whole category (1xx–5xx). Use this when an agent needs to look up any HTTP status code's meaning.

GET https://agenttools-hub.vercel.app/api/v1/dev/http-status-codes

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
140 ms typical, 140 ms slowest 5%
Last check
6 min ago
Next check
in 24 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/dev/http-status-codes?code=402"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fdev%2Fhttp-status-codes
const res = await pay("https://agenttools-hub.vercel.app/api/v1/dev/http-status-codes?code=402");
console.log(await res.json());

Example input

{
  "code": 402
}

Example output

{
  "result": {
    "answer": "402 Payment Required",
    "answerLabel": "HTTP status",
    "details": [
      {
        "label": "Category",
        "value": "client-error"
      },
      {
        "label": "Meaning",
        "value": "Reserved for payment — revived by the x402 protocol: the response carries payment requirements (USDC on Base) and is retried with payment attached."
      },
      {
        "label": "Class",
        "value": "4xx — 4xx Client Error"
      }
    ],
    "table": {
      "columns": [
        "Field",
        "Value"
      ],
      "rows": [
        [
          "Code",
          402
        ],
        [
          "Phrase",
          "Payment Required"
        ],
        [
          "Category",
          "client-error"
        ]
      ]
    },
    "value": 402
  },
  "tool": "http-status-codes"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
6 min agoPassed402146 ms$0.002
5 h agoPassed402140 ms$0.002