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.
32 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} — Delete a character (Friends API) Open & run this endpointDELETE https://funapi.dev/api/superheroes/v1/heroes/{id} — Retire a hero (Superhero API) Open & run this endpointDELETE https://funapi.dev/api/pizza/v1/orders/{id} — Cancel an order (409 if already delivered) (Pizza Orders API) Open & run this endpointDELETE https://funapi.dev/api/football/v1/teams/{id} — Remove a team (409 if it has played matches) (Football API) Open & run this endpointDELETE https://funapi.dev/api/movies/v1/movies/{id} — Remove a movie (Movies API) Open & run this endpointDELETE https://funapi.dev/api/wizarding/v1/students/{id} — Expel a student (Harry Potter API) Open & run this endpointDELETE https://funapi.dev/api/galaxy/v1/characters/{id} — Remove a character (Star Wars API) Open & run this endpointDELETE https://funapi.dev/api/holmes/v1/suspects/{id} — Clear a suspect (Sherlock Holmes API) Open & run this endpointDELETE https://funapi.dev/api/pokemon/v1/pokemon/{id} — Release a Pokémon (Pokémon API) Open & run this endpointDELETE https://funapi.dev/api/middleearth/v1/fellowship/{id} — Remove a member from the fellowship (Middle-earth API) Open & run this endpointDELETE https://funapi.dev/api/webhooks/v1/subscriptions/{id} — Unsubscribe (Webhooks API) Open & run this endpointDELETE https://funapi.dev/api/office/v1/employees/{id} — Fire an employee (The Office API) Open & run this endpointDELETE https://funapi.dev/api/dinopark/v1/dinosaurs/{id} — Relocate a dinosaur off-site (Dino Park API) Open & run this endpointDELETE https://funapi.dev/api/marvel/v1/heroes/{id} — Retire a hero (Marvel API) Open & run this endpointDELETE https://funapi.dev/api/rickandmorty/v1/characters/{id} — Remove a character (portal them out of existence) (Rick and Morty API) Open & run this endpointDELETE https://funapi.dev/api/airline/v1/bookings/{id} — Cancel a booking (admin only, then 410) (Airline API) Open & run this endpointDELETE https://funapi.dev/api/protocol/v1/documents/{id} — Delete a document (admin only, then 410) (Protocol Lab API) Open & run this endpointDELETE https://funapi.dev/api/starfleet/v1/crew/{id} — Discharge a crew member (admin only) (Starfleet API) Open & run this endpointDELETE https://funapi.dev/api/reservations/v1/holds/{id} — Release a hold or cancel a confirmed reservation (Reservation API) Open & run this endpointDELETE https://funapi.dev/api/worldcup/v1/tickets/{id} — Cancel a ticket order and release the seats (admin only) (World Cup 2026 API) Open & run this endpointDELETE https://funapi.dev/api/fiba/v1/tickets/{id} — Cancel an order and release the seats (FIBA World Cup API) Open & run this endpointDELETE https://funapi.dev/api/storage/v1/objects/{key} — Delete an object (Object Storage API) Open & run this endpointPOST https://funapi.dev/api/identity/v1/revoke — Revoke an access token (Modern Identity API) Open & run this endpointDELETE https://funapi.dev/api/faults/v1/config — Reset fault profile (Fault Injection API) Open & run this endpointGET https://funapi.dev/api/faults/v1/status/{code} — Return any status code on demand (200–599) (Fault Injection API) Open & run this endpoint…and 7 more endpoints across the catalog.
All HTTP status codes · All 55 mock REST APIs · Getting started guide
Last updated