Version: v2023-05-30 | Includes use: Yes |
---|
Criterion name: Response Status Code
Match a set or range of HTTP response codes.
Default criterion
These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.
data "akamai_property_rules_builder" "match_response_code" {
rules_v2023_05_30 {
name = "Content Provider Code"
comments = "Matches the assigned content provider code."
criterion {
match_cp_code {
value = ""
}
}
}
}
"criterion": [
{
"name": "matchCpCode",
"options": {
"value": ""
}
}
]
Options
Option | Description |
---|---|
match_operator |
Matches numeric range or a specified set of values. Value is one of:
|
values |
A set of response codes to match, for example
["404","500"] .
|
lower_bound |
Specifies the start of a range of responses. For example,
400 to match anything from 400 to 500 .
|
upper_bound |
Specifies the end of a range of responses. For example,
500 to match anything from 400 to 500 .
|