One response carrying several independent outcomes, for a request that operated on more than one resource. Each element has its own status.
Defined in RFC 4918 §11.1 — 207 Multi-Status · MDN reference
Bulk endpoints: create fifty records, delete a list of ids, dispatch a batch of messages. One request, many outcomes, and no single status that honestly describes all of them.
The trap is treating the 207 itself as success. Individual operations inside it may have failed, and only the per-item statuses will tell you.
The response is the assertion, not the status. Walk the per-item results and count successes and failures explicitly. A client that sees 2xx and moves on will silently drop the items that failed, and nothing downstream will know.
2 endpoints in this playground answer with 207. Every one is free, needs no signup, and can be called from the browser or with curl.
POST https://funapi.dev/api/friends/v1/characters/bulk — Partial success — some items failed validation (Friends API) Open & run this endpointPOST https://funapi.dev/api/friends/v1/characters/bulk-delete — Partial success — some ids did not exist (Friends API) Open & run this endpointAll HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated