There is no HTTP status 0. The registered codes start at 100, and no server can send a zero. When your browser, an API client or a monitoring tool reports status 0, it’s telling you that no usable response reached the code asking for it. Sometimes that’s because the server never answered. Often the server answered fine and the browser just wouldn’t let your JavaScript read it.
Where the Zero Comes From
The zero is a placeholder that browser APIs use when there’s no real status to give. MDN’s reference pages spell out the cases:
- XMLHttpRequest reports 0 before the request completes, and “browsers also report a status of 0 in case of XMLHttpRequest errors.”
- fetch() doesn’t return a status at all for a network error; its promise rejects. But a Response of type
opaque(a cross-origin request made withmode: "no-cors"),opaqueredirect, orerrorcarries status 0, an empty body and empty headers.
So status 0 lumps together two very different situations. Either nothing came back, or something came back that you’re not permitted to see. Your first job is to work out which.
Is It the Server or the Browser?
Ask the same URL from somewhere that isn’t a browser. A plain request has no CORS rules, no ad blocker and no page that can navigate away mid-request:
curl -sS -o /dev/null -w "%{http_code} %{time_total}s\n" https://api.example.com/health
If that prints 200, the server is up and the zero is a browser-side story. If curl also fails (a timeout, “connection refused”, a TLS error, or 000, which is curl’s own way of saying it got no status), the server or the network in front of it really didn’t answer. Run the check from more than one network if you can, since one office connection proves little. Our free is it down checker asks from several regions at once.
Seven Things That Produce a Zero
When Nothing Came Back
- DNS didn’t resolve. No address, no connection, no status. A typo, an expired domain, or records changed and not yet visible.
- The connection was refused or never opened. Nothing listening on the port, a firewall dropping packets, or a server that’s actually down.
- The TLS handshake failed. An expired or mismatched certificate stops the request before any HTTP is spoken.
- It timed out. The connection opened but no response arrived before the client gave up, including a client-side timeout you set yourself.
When Something Came Back That You Can’t Read
- CORS blocked it. The server answered, but without headers allowing your origin to read the response. MDN’s CORS errors page notes that, for security reasons, “specifics about what went wrong with a CORS request are not available to JavaScript code,” and that the browser console is the only place to see the reason. This catches people out in one particular way: a server error page sent without CORS headers reaches your code as a zero, not as the 500 it really was.
- An extension blocked it. Ad and privacy blockers cancel requests to URLs that look like tracking. The request never leaves the browser, so the server’s logs show nothing.
- The page cancelled it. Navigating away, closing a tab or aborting a fetch ends in-flight requests. Zeros clustered around page unloads are almost always this, and they’re noise.
Causes 5 to 7 never reach a server-side monitor, because a monitor isn’t a browser. Causes 1 to 4 do.
What a Monitor Does With a Zero
A server-side check sees only the first group, and for those the honest answer is “down”. There was no response, so there’s nothing to call healthy. In FlareWarden’s own checker, a request that ends without a response is stored with status code 0 and marked down. We also record the stage it got stuck in (DNS lookup, connecting, the TLS handshake, or waiting for the first byte) and a plain error such as “DNS resolution failed”, “Connection refused” or “Request timeout after 10s”. That’s what lands in the alert, which tells you a lot more than a bare zero would.
That stage matters because “no response” has more than one owner. A connect failure points at the server or its firewall; a lookup failure points at DNS. And sometimes it points at us. If a lookup fails from one of our machines while public resolvers resolve the name fine, we treat that check as inconclusive rather than down, because the fault is in the resolver our machine used, not in your site. Before any alert goes out, other regions re-check the failure, which is the reasoning behind why single-region monitors produce false positive downtime alerts.
The contrast with the codes people usually worry about is useful. A 502, 503 or 504 means something did answer: a proxy or load balancer, reporting that the app behind it failed. A zero means nothing answered at all, or nothing you were allowed to read. Both are failures, but they send you to different places.
When the Browser Says 0 and the Monitor Says Up
This is the most common confusing case, and it’s usually not an outage. If your uptime monitor shows the endpoint answering 200 from several regions while your front end logs HTTP status 0, look at the browser layer:
- Open the console, not just the network tab. CORS failures are explained only there.
- Check the response headers on the failing route specifically. Many apps add CORS headers in a middleware that error handlers skip, so the success path works and the failure path turns into zeros.
- Filter out cancellations. Zeros logged during page unloads or route changes aren’t failures, and counting them in an error rate makes your dashboard lie.
The reverse also happens. A monitor pointed at a page that always answers can stay green while the API your front end needs is the thing failing. Point a check at an endpoint that exercises what matters; our guide to health check endpoints covers what to put behind one.
Our Take
Treat a zero as a question, not a verdict. In the browser it’s ambiguous by design, and the console will usually answer it in a few seconds. From a server-side monitor it isn’t ambiguous: no response is a failure, and the useful part is knowing which stage failed and whether more than one region agrees.
Key Takeaways
- HTTP status 0 isn’t sent by servers. Clients use it when no usable response reached the calling code.
- Two families of cause. Nothing came back (DNS, refused connection, TLS, timeout), or something came back the browser won’t let you read (CORS, blockers, cancellations).
- Curl settles it fast. If a plain request gets a real status, the problem is in the browser layer.
- CORS can hide a 500. An error response without CORS headers arrives in JavaScript as a zero.
- For a monitor, no response means down. The stage and the error message, confirmed from more than one region, are what make the alert useful.
Want alerts that say which stage failed instead of a bare zero? Start monitoring free with FlareWarden: 15 monitors checked every 5 minutes, re-checked from other regions before anyone’s paged, no credit card required. The uptime monitor docs explain each check result.