Skip to content

Commit a099658

Browse files
committed
Add Chrome Dev Tools blog post
1 parent 4ea59bd commit a099658

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: blog-single
3+
title: "Chrome Developer Tools Network Tab Filter by 'not' status code"
4+
date: January 10, 2025
5+
image:
6+
tags: [Tools]
7+
related_posts:
8+
---
9+
10+
Recently a co-worker reported sporadic 500-range errors on a website he was performing testing on. I was trying to gather some information on what was happening and wanted to use the "Network" tab in Chrome DevTools to show me the following requests
11+
12+
1. Only requests to the domain of the specific website (e.g. filter out all 3rd party requests)
13+
2. All non 200 responses
14+
15+
16+
Step one I knew how to do...in the filter search enter `domain:example.com` (replacing `example.com` with the actual domain for the project), however I was unsure how to complete the second step.
17+
18+
<!-- excerpt_separator -->
19+
20+
Through some Googling I eventually discovered that it is possible to do a negative search by pre-pending the `-` symbol to the field on which you are filtering.
21+
22+
Putting this all together, I landed on the following filter search
23+
24+
```
25+
domain:example.com -status-code:200
26+
```
27+
28+
Here's a screenshot of how the looks in DevTools when visiting `amazon.com`.
29+
30+
<img
31+
class="rounded shadow"
32+
src="/img/blog/chrome-dev-tools-filter-not/dev-[email protected]"
33+
srcset="/img/blog/chrome-dev-tools-filter-not/dev-[email protected] 1x, /img/blog/chrome-dev-tools-filter-not/dev-[email protected] 2x"
34+
alt="Screenshot of filtering in DevTools network panel">
35+
36+
Hope you find this helpful.
327 KB
Loading
457 KB
Loading

0 commit comments

Comments
 (0)