Error Codes Split
Split section listing six error families with codes, stable types, and fixes beside a mockup response body and a short list of guarantees.
Split section listing six error families with codes, stable types, and fixes beside a mockup response body and a short list of guarantees.
The source for every Marketing block is included with Basic and Pro. Pick a plan to copy the code.
Already purchased? Log in
Error Codes Split puts the whole error contract on one screen. The left column is a ruled list of six error families, each row pairing the status code, the stable machine readable type, and a plain sentence naming what to do next. The right column mocks one real response body, a 429 with its type, message, doc link, request id, and retry hint, then lists three guarantees that make the errors worth trusting.
An errors array and a responseLines array drive the block, and everything stays text and theme tokens, so it renders the same in light and dark with no dependencies.
Reach for this block on developer and reference pages where integrators are writing the code that has to survive failure. It belongs after the happy path is established, the quickstart shows the call working, this block shows what happens when it does not.
A natural flow around it on a Marketing Pro page:
Before
After
One strong use is your real error taxonomy with honest fixes. Other lists:
Tip: a stable type string the reader can switch on in code is worth more than a clever message, keep the types boring.