V2EX  ›  英汉词典

Status-Code

释义 Definition

status-code(常指 HTTP status code)是“状态码”,用于用一个数字代码表示请求/操作的结果状态(如成功、重定向、客户端错误、服务器错误等)。在网络与接口开发中最常见。

发音 Pronunciation (IPA)

/ˈsteɪtəs koʊd/

例句 Examples

The API returned a 404 status-code.
这个接口返回了 404 状态码。

If the status-code indicates a server error, we should log the response body and retry with exponential backoff.
如果状态码显示服务器错误,我们应该记录响应内容,并采用指数退避策略重试。

词源 Etymology

status(状态,源自拉丁语 status,意为“站立、状态”)和 code(编码、代码)组合而成,字面义为“用代码表示的状态”。在计算机与通信领域中,逐渐固定用来指“用数字/符号表示结果类别”的标记,尤以 HTTP 协议最为普遍。

相关词 Related Words

文献与作品 Literary / Notable Works

  • RFC 7231: Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content(系统说明 HTTP 语义与常见状态码含义)
  • Roy Fielding, Architectural Styles and the Design of Network-based Software Architectures(REST 相关论述中涉及 HTTP 响应与状态码的核心作用)
  • David Gourley & Brian Totty, HTTP: The Definitive Guide(以大量示例讲解 HTTP 响应与状态码使用场景)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   896 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 23:50 · PVG 07:50 · LAX 15:50 · JFK 18:50
♥ Do have faith in what you're doing.