statusCodeClientErrorFilter
Description
Select exchanges that HTTP status code indicates a client error (4XX).
Evaluation scope
Evaluation scope defines the timing where this filter will be applied.
{.alert .alert-info} ::: responseHeaderReceivedFromRemote This scope occurs the moment fluxzy has done parsing the response header. :::
YAML configuration name
statusCodeClientErrorFilter
Settings
This filter has no specific characteristic
The following table describes the customizable properties available for this filter:
{.property-table .property-table-filter} ::: | Property | Type | Description | DefaultValue | | :------- | :------- | :------- | -------- | | inverted | boolean | Negate the filter result | false | :::
Example of usage
The following examples apply a comment to the filtered exchange
Select exchanges that HTTP status code indicates a client error (4XX).
rules:
- filter:
typeKind: StatusCodeClientErrorFilter
actions:
- typeKind: ApplyCommentAction
comment: filter was applied
.NET reference
View definition of StatusCodeClientErrorFilter for .NET integration.
See also
The following filters are related to this filter: