Free auditStart free
GuideError · HTTP status codes

HTTP 204 No Content

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.

3 min
read
5
sources
Oct 22, 2026
updated
Scaplet Editorial Team
author
The short answer

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.

  1. What a 204 means and who causes it
  2. 204 or 200 for DELETE?
  3. Mistakes that break a 204
  4. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Typical 204 responses

What a 204 means and who causes it

RFC 9110 says the 204 (No Content) status code "indicates that the server has successfully fulfilled the request and that there is no additional content to send in the response content". The server sends it on purpose. It is a success code, not an error.
Request

DELETE

What 204 says
The action succeeded and nothing more needs to be sent
Source
MDN
Request

PUT

What 204 says
The action succeeded; an ETag gives the new representation's tag
Source
MDN, RFC 9110
Request

Save in an editor

What 204 says
Stay on the page; the document remains available for editing
Source
RFC 9110

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.

02Explained

204 or 200 for DELETE?

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.

  • Return 204 when the client has nothing to read after the action.
  • Return 200 when you want to send back the status of the action.
03How it works

Mistakes that break a 204

Return 204 from nginx
location = /ping {
    return 204;
}
  1. 01

    Sending a body

    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.

  2. 02

    Using 204 for a page people should see

    MDN says a 204 tells the client it does not need to navigate away from its current page. Use 200 with content for pages.

  3. 03

    Expecting a result

    If the client needs data back, 204 gives none. Use 200.

  4. 04

    Serving 204 to crawlers

    See the SEO section; Google cannot process a response with no content.

04Explained

What it does to SEO

Google's documentation says for a 204 "Google wasn't able to receive any content and therefore can't process it". A page URL that returns 204 gives Google nothing to index, so a public page should return 200 with content. Check that no template, redirect or API error returns 204 for a page that should rank. See soft 404 errors and Google's documentation on how HTTP status codes affect its crawlers. Related: 200 OK and 201 Created.
Sources · 5

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • nginx.org
  • iana.org
  • google.com
  1. 01RFC 9110: 204 No Content (Section 15.3.5)rfc-editor.org · checked 2026-10-25
  2. 02MDN: 204 No Contentdeveloper.mozilla.org · checked 2026-10-25
  3. 03nginx: ngx_http_rewrite_module (return)nginx.org · checked 2026-10-25
  4. 04IANA HTTP Status Code Registryiana.org · checked 2026-10-25
  5. 05How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What is response status 204?

It is No Content. The server fulfilled the request successfully and has no content to send back.

02Should DELETE return 204 or 200?

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.

03Can a 204 response have a body?

No. RFC 9110 says a 204 is terminated by the end of the header section and cannot contain content or trailers.

04Does a 204 hurt SEO?

If a page you want indexed returns 204, yes. Google says it cannot process a 204 because it receives no content.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane