The request succeeded and there is deliberately no body. Most commonly the answer to a successful DELETE.
Defined in RFC 9110 §15.3.5 — 204 No Content · MDN reference
Successful DELETEs, PUTs that do not echo the updated resource back, endpoints whose whole job is a side effect, and preference or settings writes where the client already knows the new state it just sent.
Clients that call response.json() unconditionally throw here. Testing a 204 path is how you find out that your error handling has a hole in it.
Do not call .json() unconditionally. Fetch-based clients throw on an empty body, and the throw surfaces as a network-looking error a long way from its cause. Branch on the status, or check content-length, before parsing.
23 endpoints in this playground answer with 204. Every one is free, needs no signup, and can be called from the browser or with curl.
DELETE https://funapi.dev/api/friends/v1/characters/{id} — Deleted, empty body (Friends API) Open & run this endpointDELETE https://funapi.dev/api/superheroes/v1/heroes/{id} — Retired (Superhero API) Open & run this endpointDELETE https://funapi.dev/api/pizza/v1/orders/{id} — Cancelled (Pizza Orders API) Open & run this endpointDELETE https://funapi.dev/api/football/v1/teams/{id} — Removed (Football API) Open & run this endpointDELETE https://funapi.dev/api/movies/v1/movies/{id} — Removed (Movies API) Open & run this endpointDELETE https://funapi.dev/api/wizarding/v1/students/{id} — Expelled (Harry Potter API) Open & run this endpointDELETE https://funapi.dev/api/galaxy/v1/characters/{id} — Removed (Star Wars API) Open & run this endpointDELETE https://funapi.dev/api/holmes/v1/suspects/{id} — Cleared (Sherlock Holmes API) Open & run this endpointDELETE https://funapi.dev/api/pokemon/v1/pokemon/{id} — Released (Pokémon API) Open & run this endpointDELETE https://funapi.dev/api/middleearth/v1/fellowship/{id} — Removed (Middle-earth API) Open & run this endpointDELETE https://funapi.dev/api/webhooks/v1/subscriptions/{id} — Unsubscribed (Webhooks API) Open & run this endpointDELETE https://funapi.dev/api/office/v1/employees/{id} — Fired (The Office API) Open & run this endpointDELETE https://funapi.dev/api/dinopark/v1/dinosaurs/{id} — Relocated (Dino Park API) Open & run this endpointDELETE https://funapi.dev/api/marvel/v1/heroes/{id} — Retired (Marvel API) Open & run this endpointDELETE https://funapi.dev/api/rickandmorty/v1/characters/{id} — Removed (Rick and Morty API) Open & run this endpointDELETE https://funapi.dev/api/airline/v1/bookings/{id} — Cancelled — subsequent GETs return 410 (Airline API) Open & run this endpointDELETE https://funapi.dev/api/protocol/v1/documents/{id} — Deleted — subsequent GETs return 410 (Protocol Lab API) Open & run this endpointDELETE https://funapi.dev/api/starfleet/v1/crew/{id} — Beamed home safely (Starfleet API) Open & run this endpointDELETE https://funapi.dev/api/worldcup/v1/tickets/{id} — Cancelled (World Cup 2026 API) Open & run this endpointDELETE https://funapi.dev/api/fiba/v1/tickets/{id} — Cancelled (FIBA World Cup API) Open & run this endpointDELETE https://funapi.dev/api/storage/v1/objects/{key} — Deleted (Object Storage API) Open & run this endpointPOST https://funapi.dev/api/identity/v1/revoke — Revoked or already absent (Modern Identity API) Open & run this endpointDELETE https://funapi.dev/api/faults/v1/config — Reset (Fault Injection API) Open & run this endpointAll HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated