204 No Content

The request succeeded and the server has deliberately sent no body.

Status

HTTP/1.1 204 No Content

Details

204 means success with nothing to say. It is the natural answer to a DELETE that removed something, a PUT that saved without returning the saved object, and to beacon or telemetry endpoints where the client does not need a payload.

The response must not include a body. A 204 carrying content is a protocol violation and different clients handle it differently, which produces confusing intermittent bugs. A browser receiving 204 for a navigation stays on the current page.

Headers

Common causes

How to fix it

As the client

As the server

Examples

DELETE /api/v2/order/40213 HTTP/1.1
Host: api.example.com
Authorization: Bearer sk_live_example

HTTP/1.1 204 No Content

Specifications

RFC 9110 §15.3.5

See also