Api Error Design

samber/developer-platform-skills/skills/api-error-design

作者 samber594cf70d343eMIT3 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫10 天前更新

Design the error surface of a public API so integrators self-serve fixes - a machine-readable error-code taxonomy (flat catalog, code/subcode, Google-style domain/reason), the RFC 9457 problem-details envelope with extension members, actionable error messages, retryability signaling (retryable flag, Retry-After), and per-endpoint error documentation with request-ID tracking. Use whenever the user mentions API error codes, an error taxonomy, RFC 9457, application/problem+json, 4xx/5xx response bodies, or confusing API error messages - even if they never say "error design". Do NOT use for client-side retry mechanics - use samber/developer-platform-skills@api-idempotency-retry - nor for incident and status-page communication - use samber/developer-platform-skills@api-status-communication instead.

僅公開檔案列表。將技能安裝到工作區後即可檢視檔案內容。

路徑大小類型
evals/evals.json26.4 KBapplication/json
references/error-documentation-examples.md3.8 KBtext/markdown
references/message-rewrite-examples.md3.5 KBtext/markdown
references/rfc9457-payload-examples.md4.7 KBtext/markdown
references/taxonomy-catalog-examples.md5.4 KBtext/markdown
SKILL.md18 KBtext/markdown

來源與署名

來源:samber/developer-platform-skills位於skills/api-error-design提交594cf70

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架