statusCodeRedirectionFilter is the concise way to surface every 3XX response in a Fluxzy session. Combine it with capture and tagging actions to build a redirection audit, or pair it with statusCodeFilter for precise per code rules.
Use statusCodeRedirectionFilter when you want a rule that fires for any 3XX response, which covers permanent redirects, temporary redirects, not modified responses and the rest of the redirection family.
Typical situations:
The filter evaluates on the responseHeaderReceivedFromRemote scope, so the status line is already parsed when it runs. Use statusCodeFilter if you only care about a specific code such as 301 or 304.
Apply a tag to any 3XX exchange so you can build a saved view of all redirection traffic in a session.
rules:
- filter:
typeKind: StatusCodeRedirectionFilter
actions:
- typeKind: ApplyTagAction
tag:
value: redirection
Send all 3XX responses to a separate capture so the redirection chain can be replayed and inspected offline.
rules:
- filter:
typeKind: StatusCodeRedirectionFilter
actions:
- typeKind: CaptureSessionAction
Annotate every 3XX response with a custom header that names the rule, useful when several teams maintain different parts of the same site.
rules:
- filter:
typeKind: StatusCodeRedirectionFilter
actions:
- typeKind: AddResponseHeaderAction
headerName: X-Redirect-Audit
headerValue: 'observed-by-fluxzy'
Select exchanges that HTTP status code indicates a redirect (3XX).
Evaluation scope defines the timing where this filter will be applied.
responseHeaderReceivedFromRemote This scope occurs the moment fluxzy has done parsing the response header.
statusCodeRedirectionFilter
This filter has no specific characteristic
The following table describes the customizable properties available for this filter:
| Property | Type | Description | DefaultValue |
|---|---|---|---|
| inverted | boolean | Negate the filter result | false |
The following examples apply a comment to the filtered exchange
Select exchanges that HTTP status code indicates a redirect (3XX).
rules:
- filter:
typeKind: StatusCodeRedirectionFilter
actions:
- typeKind: ApplyCommentAction
comment: filter was applied
View definition of StatusCodeRedirectionFilter for .NET integration.
The following filters are related to this filter:
Every code in the 300 to 399 range, including 301, 302, 303, 304, 307 and 308.
No. The filter only matches the redirect response itself. Whether the client follows the Location header is decided by the client, not by Fluxzy.
Use statusCodeFilter with statusCodes set to [301, 308]. statusCodeRedirectionFilter is intentionally broader, it covers every 3XX code.
Yes, set inverted: true. The rule then fires for every response that is not in the 3XX range.