| 用途 | 按响应状态码过滤 |
|---|---|
| 语法 | http.response.code == N / >= 400 / in {401, 403} |
常用示例
常用示例
http.response.code == 502
http.response.code >= 500
http.response.code in {301, 302, 307}配合 http.request.uri 可直接定位是哪些 URL 返回了错误码。
http.response.code 匹配响应状态码,可精确到单一码或区间(>= 500);排查 4xx/5xx 批量筛选时用区间条件更高效。
| 用途 | 按响应状态码过滤 |
|---|---|
| 语法 | http.response.code == N / >= 400 / in {401, 403} |
http.response.code == 502
http.response.code >= 500
http.response.code in {301, 302, 307}