← 返回卡片

原书出处

Mastering API Architecture

01

First Edition · 核验版本的摘录快照 · 导入于 2026-11-14T06:14:52.110Z

An accurate status code must be provided to the consumer, because often consumers will build logic around the status code provided in the response. We have seen many APIs that return errors in the body along with a 2xx type of response, which is used to indicate success.

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Mastering API Architecture/_epub-src/OEBPS/ch01.xhtml#masteringapi-CHP-2-SECT-errors

EPUB SHA-256:5be3275a289df0138f17f72c8e9c84987cbe07a5fe28c7cbc649d6b5cd8a14dd