How to read the traffic table: icons, status codes, response source
Hundreds of traffic rows look the same until you need to understand one: why the screen showed the wrong price. Did the server answer, or a mock someone forgot to turn off? Did the request reach the server or drop? The “Traffic” table in Microkoi Bench answers with icons rather than text, and it reads in seconds once you know where to look.
The first column: who answered
The narrow unnamed column on the left is the response source. It marks only the exceptions. A server response has no mark, so in a normal session the column is empty and anything unusual stands out right away.
| Icon | What it means |
|---|---|
| Empty | The server answered |
| Blue cube | A mock answered |
| Orange bolt | Chaos delayed or broke the response |
| Bolt in a blue square | Chaos on top of a mock: a mock answered, and chaos broke or delayed it |
| Yellow braces {•} | The server response differs from the endpoint contract |
| Yellow pause | The exchange was paused at a breakpoint |
| Red crossed circle | The exchange was canceled at a breakpoint |
| Gray tilde ~ | The response holds JSON inside a string |
The icons differ in shape, not just color. A cell always has one icon: a canceled exchange comes first, then a contract difference, then a pause, chaos, and a mock, and the gray tilde comes last. Anything else that happened shows up as further lines of the tooltip. The column header’s tooltip lists every icon.
You can filter by these icons, too. “Filters” has a “Show only” group: “Mocks”, “Chaos”, “Model changed”, “JSON in string”. Check several, and the list keeps exchanges with at least one of them. “Without chaos” removes exchanges hit by chaos.
The mock you forgot to turn off
A common trap: the screen shows mock data while you’re sure you’re working with staging. In the table, that’s a blue cube on the row. Hover over it, and the tooltip names the mock: “Mocked by “Order list””. If a case answered, the tooltip names it too: “Answered by case “Out of stock”, mock “Sold out””.
In that case, the exchange panel shows a “Mock “Order list”” button in place of “Create mock”. It opens the mock, where you can turn it off.
The response broke the contract
Bench derives an endpoint’s contract from the server’s responses: which fields arrive and what types they are. If a response differs — a field changed type, disappeared, or appeared — the row gets yellow braces {•}. The tooltip names the endpoint and up to three fields, such as “price number → string” and “oldPrice number → missing”.
That’s how you find the cause of the wrong price: the server started sending the price as a string, and the app’s parsing didn’t understand it. Mock and chaos responses never get this icon: that isn’t the server’s behavior.
In the “Endpoints” tree, the same yellow braces with a number show unaccepted contract changes on a method or branch; the tooltip says “3 contract changes”.
The gray tilde: JSON inside a string
A tilde ~ means the server put a whole JSON document into a response field as a string. The tooltip names the fields: “JSON inside a string in the response: result.MENU_JSON”. To read it as regular JSON, switch from “As received” to “Expand JSON in strings” above the response body.
The “Status” column: more than numbers
| In the column | What happened |
|---|---|
| 200, 404, 500 | Status code from the server or a mock |
| “—” | The response hasn’t arrived yet |
| “failed” | The request got no response: the host is unreachable or the device doesn’t trust the Bench certificate |
| “drop”, “hang” | Chaos dropped the connection or is holding it without a response |
| Orange status code | Chaos returned the error, not the server: “503 from Bench chaos · before server” |
The cause of “failed” is in the “The exchange didn’t complete.” bar in the exchange panel. The “Failed” button in the “Filters” panel leaves only those exchanges in the list.
The other columns
“Host” is the server name; the icon before it marks a secure connection. “Path” takes all the free space, and a long URL is cut with an ellipsis, with the full one in the tooltip. “Size”, “Time”, and “Started” are right-aligned, so a slow response stands out by the length of its number.
A colored stripe at the left edge of a row is a bookmark. It marks exchanges you’ll come back to: a failed request, a reference response, a reproduction step.
The endpoint tree tells you where to look
- The number next to a branch is how many calls it got; a separate number shows how many failed. It stays visible on a collapsed branch.
- Blue braces in a frame mean the endpoint on another host responds differently: staging and production have drifted apart.
- A monitoring icon on a method means the endpoint is already checked on a schedule, and the icon’s color is the monitor status. The tooltip reads like “In monitoring: Down. Open monitor”.
- Clicking a branch leaves only its requests in the table.
A reading order
- Look at the first column: everything unusual is marked there.
- Find “failed”, 4xx, and 5xx in the “Status” column or with the buttons in “Filters”.
- Check the failed call counts in the “Endpoints” tree.
- Open the suspicious exchange: ↑ and ↓ switch to its neighbors.
Open your latest debugging session in beta 0.9.6 and write to beta@microkoi.com about the icon you missed in the table. We read every email.