204 No Content

Done. Nothing to say about it.

What it properly means

The request succeeded and there is no body to send, though the headers may still be useful.

Class
2xx Successful: here you go
Defined in
RFC 9110, section 15.3.5

Get one yourself

This endpoint really answers with 204. Point your client at it and see what it does.

curl -i https://httpcodes.dev/api/204

People mix this up with

  • 200 OK204

    Is there a body?

    Both mean it worked. 200 comes with something to read. 204 comes with nothing, on purpose, and a client must not expect a body.