status code(状态码):用于表示某个请求、操作或系统响应结果的数字代码。最常见指 HTTP 状态码(如 200、404、500),用来说明服务器对请求的处理结果。
/ˈsteɪtəs koʊd/
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 调用失败,把状态码和响应体记录下来,有助于判断问题是来自鉴权、限流,还是服务器端故障。
status 源自拉丁语 status(“站立、状态、状况”),表示“所处的状态”;code 源自拉丁语 codex(“法典、成文规则/条目”),后来引申为“编码/代码”。合起来 status code 字面意思是“表示状态的代码”,在计算机与网络协议中固定化为“用数字表示处理结果/响应状态”的术语。