204 No Content means the request succeeded but there is no body to return. The server processed the action fine, and the client should keep its current view or state as is.
It reports success while skipping data transfer, saving bandwidth, and is widely used for DELETE and state-changing PUT/PATCH responses.
DELETE /api/users/42 HTTP/1.1
Host: api.example.com
Authorization: Bearer eyJhbGciOi...HTTP/1.1 204 No Content
Date: Wed, 16 Jul 2026 09:12:00 GMTapp.delete('/api/users/:id', (req, res) => {
db.remove(req.params.id);
res.status(204).end(); // no body
});@app.delete('/api/users/<int:uid>')
def remove(uid):
db.delete(uid)
return '', 204