01 · EXAMPLES PER STATUS
Every status code gets a real-shaped body.
200 is the easy part. The hard part is 422 with a useful field name, 409 with a duplicate-key message, 503 with a retry hint. Apinizer lets you author a body for every status code your real API will return — so the frontend can build error UI before backend is even started.
- Author a body for any HTTP status — 2xx, 4xx, 5xx
- Per-example content type — JSON, XML, plain text
- Custom response headers with variable resolution at request time
- Every HTTP verb supported: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE
- 200
- 4xx errors
- 5xx errors
- headers
- content-type