DELETE
- What 204 says
- The action succeeded and nothing more needs to be sent
- Source
- MDN
HTTP 204 means the request succeeded and there is no content to send. See when to use it, how it differs from 200, and the mistakes that break it.
HTTP 204 No Content means the server successfully fulfilled the request and has no additional content to send in the response. A 204 ends at the header section and cannot contain content or trailers. It is common for saves and deletes where the client stays on its current view.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
The RFC says a 204 lets a server indicate that the action was applied while implying the user agent does not need to leave its current document view. It gives a save action in an editor as the typical case. Metadata in the headers refers to the target resource after the action, so a PUT that returns 204 with an ETag is telling you the new entity tag.
RFC 9110 says a 200 for PUT or DELETE carries the status of the action, and that if the request indicates a preference for no content upon success, the server ought to send a 204. MDN says a successful PUT or DELETE often does not return 200, and that 204 is common upon successful deletion.
location = /ping {
return 204;
}A 204 cannot contain content. MDN says the response must not include any content or the Content-Length header, and that browsers may reject responses that include content.
MDN says a 204 tells the client it does not need to navigate away from its current page. Use 200 with content for pages.
If the client needs data back, 204 gives none. Use 200.
See the SEO section; Google cannot process a response with no content.
4 questions people ask next, answered from the sources on this page.
It is No Content. The server fulfilled the request successfully and has no content to send back.
Either can be valid. RFC 9110 says that if the request indicates a preference for no content on success, the server ought to send 204 instead of 200. Use 200 if you want to send the status of the action.
No. RFC 9110 says a 204 is terminated by the end of the header section and cannot contain content or trailers.
If a page you want indexed returns 204, yes. Google says it cannot process a 204 because it receives no content.
Run the free audit, then approve the fixes. Every change can be undone.