Toolman

HTTP 204 — No Content

2xx Success

What it means

The request succeeded and there is deliberately no body to return. Common for DELETE and for PUT that returns nothing.

What to do about it

Do not send a body with a 204 — some clients will error. If you want to return the updated resource, use 200 instead.

Where it sits

204 belongs to the 2xx family: The request was received, understood and accepted.

HTTP/1.1 204 No Content

Checking it yourself

# see the status code and headers only
curl -sI https://example.com/path

# follow redirects and print each hop
curl -sIL -o /dev/null -w "%{http_code} %{url_effective}\n" https://example.com/path

# JavaScript
const r = await fetch(url);
console.log(r.status, r.statusText);

Other 2xx codes

All HTTP status codes