A green 200 in the Network tab feels like good news. The request went out, the server answered, and nothing turned red. But a lot of APIs answer "200 OK" even when the thing you asked for didn't happen. The real answer is inside the response body, and if you only look at the status code, you never see it.

This kind of bug is sneaky because nothing looks broken. The page loads and there's no error message. You just get an empty list, a total of zero, or a button that seems to do nothing.

What it looks like

Here's a typical REST response that comes back with status 200:

{ "success": false, "error": { "code": "CART_LOCKED", "message": "Cart is being updated, try again" } } 

And here's the GraphQL version. Many GraphQL servers return 200 even when part of the query fails, and put the problem in an errors array:

{ "data": { "cart": null }, "errors": [ { "message": "Not authorised to read cart", "path": ["cart"] } ] } 

In both cases the status code says everything is fine. The body says it isn't.

Why it's so easy to miss

Most of our tools are built around the status code. DevTools shows a request in red when the status is 4xx or 5xx, so a 200 with an error inside looks exactly like a healthy call.

Many tests do the same thing. response.ok is true for any status from 200 to 299, so a test that only checks it will pass.

The UI often hides it too. A front end that expects data.items and gets null usually falls back to an empty state, which reads as "no results" instead of "something broke".

How to find it in Chrome DevTools

  1. Open DevTools (F12) and go to the Network tab.
  2. Tick Preserve log, so the list survives a reload.
  3. Click Fetch/XHR to hide images, scripts and styles.
  4. Do the thing that looked wrong on the page.
  5. Click each call and open the Response or Preview tab.

That works, but checking calls one by one gets slow on a busy page. Two shortcuts help:

  • Press Ctrl+F (Cmd+F on a Mac) while the Network panel is open. It searches across the requests, response bodies included, so you can search for errors or success and jump straight to the call.
  • Type status-code:200 in the filter box to see only the calls that "succeeded", then go through just those.

Catch it in your tests too

If you use Playwright, don't stop at the status code:

const responsePromise = page.waitForResponse('**/api/cart'); await page.getByRole('button', { name: 'Add to cart' }).click(); const response = await responsePromise; expect(response.status()).toBe(200); const body = await response.json(); expect(body.success).not.toBe(false); expect(body.errors).toBeUndefined(); 

A short checklist

Before you call a screen "working", check these in its responses:

  1. Does the body have errors, error or "success": false?
  2. Is data null or empty when the screen should show something?
  3. Does what the screen shows match what the API sent?
  4. While you're there: was the call slow, or did it fire twice?

A 200 only tells you the server answered. It doesn't tell you it said yes. Read the body.

How does your team catch these? I'd like to hear other tricks.

This article was written with the help of AI and checked by me.