内置 100-511 常见状态码词典。?code=429 查单条,?class=4xx 查一类,都不传时返回已收录清单。对 204、429、511 等在探测/限流场景高频出现的码附有实战备注。
http://rainapi.top/api/http-status在本站内直接写 /api/http-status 就能调用;从别处调用请复制上方完整地址。 浏览器网页代码可以直接跨域请求,无需额外配置。响应头包含Access-Control-Allow-Origin: *,浏览器可 fetch。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| code 例: 429 | number | 可选 | 状态码 100-599 |
| class 例: 5xx | string | 可选 | 按类查询:1xx-5xx,与 code 二选一 |
| 字段 | 类型 | 说明 |
|---|---|---|
| status_code | number | 查询的码 |
| phrase | string | 英文原因短语 |
| zh | string | 中文含义 |
| hint | string | 使用场景备注 |
GET /api/http-status?code=429{
"code": 200,
"status_code": 429,
"phrase": "Too Many Requests",
"zh": "请求过多",
"hint": "触发限流,按 Retry-After 退避"
}| HTTP | code | 含义 |
|---|---|---|
| 400 | 400 | code 越界或 class 格式错 |
| 429 | 429 | 超出频率限制 |
Retry-After: 30公开服务面向零散调用与轻量场景。批量任务请自行加入退避(收到 429 后等待 Retry-After 秒再重试), 或先本地缓存已查询过的结果。持续高频使用建议申请独立配额(未来提供)。
curl -s 'http://rainapi.top/api/http-status?code=429'