204

No Content

2xx · Success common

Overview

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.

When it happens

Request / Response example

Request
DELETE /api/users/42 HTTP/1.1
Host: api.example.com
Authorization: Bearer eyJhbGciOi...
Response
HTTP/1.1 204 No Content
Date: Wed, 16 Jul 2026 09:12:00 GMT

In code

app.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

Notes

Related status codes

Related headers

Specification