# 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.

Canonical: https://scaplet.com/errors/http/204

Guide Error · HTTP status codes

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

204 2xx · Successful

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](#what-a-204-means-and-who-causes-it)
2. [204 or 200 for DELETE?](#204-or-200-for-delete)
3. [Mistakes that break a 204](#mistakes-that-break-a-204)
4. [What it does to SEO](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F204%20(%22HTTP%20204%20No%20Content%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F204%20(%22HTTP%20204%20No%20Content%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F204%20(%22HTTP%20204%20No%20Content%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F204%20(%22HTTP%20204%20No%20Content%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Typical 204 responses

## What a 204 means and who causes it

RFC 9110 says the 204 (No Content) [status code](/glossary/http-status-codes) "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](/glossary/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](/glossary/etag) is telling you the new [entity](/glossary/entity) tag.

_02_Explained

## 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.

_03_How it works

## Mistakes that break a 204

Return 204 from nginx

```
location = /ping { return 204; }
```

**Check it in 2 minutes**Run `curl -i https://example.com/ping` and confirm the status line says 204 and no body follows.

1. 01

### Sending a body

A 204 cannot contain content. MDN says the response must not include any content or the [Content-Length header](/glossary/content-length), 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.

_04_Explained

## 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](/seo-issues/soft-404-errors) and Google's documentation on how HTTP status codes affect its crawlers. Related: [200 OK](/errors/http/200) and [201 Created](/errors/http/201).

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. 01 [RFC 9110: 204 No Content (Section 15.3.5)](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [MDN: 204 No Content](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/204) developer.mozilla.org · checked 2026-10-25
3. 03 [nginx: ngx_http_rewrite_module (return)](https://nginx.org/en/docs/http/ngx_http_rewrite_module.html) nginx.org · checked 2026-10-25
4. 04 [IANA HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) iana.org · checked 2026-10-25
5. 05 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

Questions

## Asked a lot.

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

_01_ What is response status 204?

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

_02_ Should 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.

_03_ Can 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.

_04_ Does 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.

## Keep learning

[All errors](/errors)

[Learn HTTP 200 OK HTTP status codes](/errors/http/200) [Related Soft 404 errors Indexability](/seo-issues/soft-404-errors) [Read next HTTP 206 Partial Content HTTP status codes](/errors/http/206) [Do Run a free site audit Free, about two minutes](/site-audit)

More in HTTP status codes
[502 Bad Gateway](/errors/http/502) [503 Service Unavailable](/errors/http/503) [504 Gateway Timeout](/errors/http/504) [505 HTTP Version Not Supported](/errors/http/505) [506 Variant Also Negotiates](/errors/http/506) [507 Insufficient Storage](/errors/http/507) [508 Loop Detected](/errors/http/508) [510 Not Extended](/errors/http/510) [511 Network Authentication Required](/errors/http/511) [5xx errors](/errors/http/5xx-errors) [HTTP 200 OK](/errors/http/200) [HTTP 201 Created](/errors/http/201) [HTTP 204 No Content](/errors/http/204) [HTTP 206 Partial Content](/errors/http/206) [HTTP 301 Moved Permanently](/errors/http/301) [HTTP 302 Found](/errors/http/302) [HTTP 303 See Other](/errors/http/303) [HTTP 304 Not Modified](/errors/http/304) [HTTP 307 Temporary Redirect](/errors/http/307) [HTTP 308 Permanent Redirect](/errors/http/308) [HTTP 400 Bad Request](/errors/http/400) [HTTP 401 Unauthorized](/errors/http/401) [HTTP 405 Method Not Allowed](/errors/http/405) [HTTP 407 Proxy Authentication Required](/errors/http/407)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [User agent](/glossary/user-agent) [ETag](/glossary/etag) [Entity](/glossary/entity) [Content-Length (HTTP header)](/glossary/content-length)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
