HTTP 204 No Content

The request succeeded and there is deliberately no body. Most commonly the answer to a successful DELETE.

Why you would test it

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.

Endpoints that return 204

22 endpoints in this playground answer with 204. Every one is free, needs no signup, and can be called from the browser or with curl.

Other success codes

All HTTP status codes · All 37 mock REST APIs · Getting started guide