Success (2xx)
HTTP 204 — 204 No Content
The server has successfully fulfilled the request and that there is no additional content to send in the response body.
Common Causes & Diagnoses
- •Successful resource deletion (DELETE) or CORS OPTIONS pre-flight check.
Spesifikasyon & Kategori
Status Code:204
Category:Success (2xx)
RFC Standard:RFC 9110 / HTTP/1.1 & HTTP/2
Multi-Language Code Implementations
How to Handle, Return & Test HTTP 204
Status: 204 204 No Content
server.js / handler.ts
// Express.js Server Response
app.get('/api/resource', (req, res) => {
return res.status(204).json({ success: true, status: 204 });
});
// Client-side fetch error check
const response = await fetch('/api/resource');
if (response.status === 204) {
console.warn('Received HTTP 204 204 No Content');
}💡 Pro Tip: Ensure appropriate error handling middleware or proxy interceptors are enabled so client applications receive structured JSON responses for HTTP 204.
How to Fix / Practical Code Solutions
Express 204 response
Send status 204 without body content.
res.status(204).send();
Other Popular HTTP Status Codes
Frequently Asked Questions
Common Questions About HTTP 204 to RFC Standard
Everything you need to know regarding specifications, syntax, and security best practices.
The server has successfully fulfilled the request and that there is no additional content to send in the response body. In Turkish: Sunucu isteği tamamladı ancak geri dönecek herhangi bir gövde verisi bulunmuyor.