statusCodeServerErrorFilter is the concise way to surface every 5XX response in a Fluxzy session. Pair it with capture, logging or tagging actions to build a live triage workflow without enumerating each individual code.
Use statusCodeServerErrorFilter when you want a rule that fires for any 5XX response, which captures the full family of server or intermediary errors. This is the right filter for outage triage and live incident workflows where the exact code matters less than the fact that something failed on the server side.
Typical situations:
The filter evaluates on the responseHeaderReceivedFromRemote scope, so the status code is already known when it runs. Use statusCodeFilter if you need to react only to a specific code such as 502 or 504.
Send all server errors to a separate capture so you can review the surrounding traffic later without sifting through successful exchanges.
rules:
- filter:
typeKind: StatusCodeServerErrorFilter
actions:
- typeKind: CaptureSessionAction
Write a one line summary to stderr whenever a 5XX is observed, useful when running Fluxzy under a process supervisor that collects logs centrally.
rules:
- filter:
typeKind: StatusCodeServerErrorFilter
actions:
- typeKind: StdErrAction
line: 'server-error observed'
Apply a tag to any 5XX exchange so an incident channel can filter the timeline to only the failing requests.
rules:
- filter:
typeKind: StatusCodeServerErrorFilter
actions:
- typeKind: ApplyTagAction
tag:
value: server-error
Select exchanges that HTTP status code indicates a server/intermediary error (5XX).
Evaluation scope defines the timing where this filter will be applied.
responseHeaderReceivedFromRemote This scope occurs the moment fluxzy has done parsing the response header.
statusCodeServerErrorFilter
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 server/intermediary error (5XX).
rules:
- filter:
typeKind: StatusCodeServerErrorFilter
actions:
- typeKind: ApplyCommentAction
comment: filter was applied
View definition of StatusCodeServerErrorFilter for .NET integration.
The following filters are related to this filter:
Every status code in the 500 to 599 range, including the well known 500, 502, 503 and 504 plus any non standard 5XX returned by intermediaries.
Yes, as long as the response is what the client actually receives. Synthesized 5XX responses generated by a previous action are still matched.
statusCodeFilter requires an explicit list of codes. statusCodeServerErrorFilter is a class shortcut that always covers the whole 5XX range.
Yes, set inverted: true. The rule then fires for every response that is not in the 5XX range.