Skip to content

Commit 6152672

Browse files
committed
docs(api): derived-code examples in the API overview follow ADR-0112 casing
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MaSQn77TT5fUgHK9CesaDK
1 parent 36ec756 commit 6152672

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/docs/api/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Validation failures additionally include a `fields` array (one entry per invalid
181181
Branch on `error.code`, never on `error.httpStatus` — the status answers "what
182182
class of failure" and the code answers "which failure". A branch that has no
183183
code of its own is served a `StandardErrorCode` derived from the status
184-
(`403``permission_denied`, `503``service_unavailable`, …).
184+
(`403``PERMISSION_DENIED`, `503``SERVICE_UNAVAILABLE`, …).
185185

186186
<Callout type="info">
187187
The richer `ErrorResponseSchema` in `@objectstack/spec/api` (with `category`, `retryable`, etc.) is the aspirational spec envelope, not the current wire format. Its `category` values are drawn from the `ErrorCategory` enum: `validation`, `authentication`, `authorization`, `not_found`, `conflict`, `rate_limit`, `server`, `external`, `maintenance`.

0 commit comments

Comments
 (0)