HTTP 状态码

按需返回任意 HTTP 状态码,并带上该状态通常会有的响应头。

免费:这些端点无需账号。

请求示例

Lists every known HTTP status code with its reason phrase and category. 完整参考和 Send 按钮(英文).

cURL
curl -X GET "https://api.testingapis.com/api/status/list"
响应 · 200 OK
[
  {
    "code": 100,
    "statusText": "Continue",
    "category": "informational",
    "supported": false,
    "url": null
  },
  {
    "code": 101,
    "statusText": "Switching Protocols",
    "category": "informational",
    "supported": false,
    "url": null
… (3 more lines)