V2EX  ›  英汉词典

Status Code

释义 Definition

status code(状态码):用于表示某个请求、操作或系统响应结果的数字代码。最常见指 HTTP 状态码(如 200、404、500),用来说明服务器对请求的处理结果。

发音 Pronunciation (IPA)

/ˈsteɪtəs koʊd/

例句 Examples

The server returned a 404 status code.
服务器返回了 404 状态码。

If the API call fails, log the status code and the response body to help diagnose whether the error comes from authentication, rate limiting, or a server-side outage.
如果 API 调用失败,把状态码和响应体记录下来,有助于判断问题是来自鉴权、限流,还是服务器端故障。

词源 Etymology

status 源自拉丁语 status(“站立、状态、状况”),表示“所处的状态”;code 源自拉丁语 codex(“法典、成文规则/条目”),后来引申为“编码/代码”。合起来 status code 字面意思是“表示状态的代码”,在计算机与网络协议中固定化为“用数字表示处理结果/响应状态”的术语。

相关词 Related Words

文献与作品 Literary Works

  • RFC 9110: HTTP Semantics(HTTP 语义规范,系统定义了状态码类别与含义)
  • RFC 7231: Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content(早期广泛引用的 HTTP 状态码语义说明)
  • Roy T. Fielding — Architectural Styles and the Design of Network-based Software Architectures(REST 与 Web 架构经典论文,讨论 HTTP 交互语义时涉及状态码)
  • David Gourley & Brian Totty — HTTP: The Definitive Guide(《HTTP 权威指南》,大量示例讲解状态码用法)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   753 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 18:38 · PVG 02:38 · LAX 10:38 · JFK 13:38
♥ Do have faith in what you're doing.