- Property Manager name: Set Response Code
- Behavior version: The
latest
rule format supports theresponseCode
behavior v1.1. - Rule format status: Beta, possible breaking changes
- Access: Read/Write
- Allowed in includes: Not available for
latest
rule format
Change the existing response code. For example, if your origin sends a 301
permanent redirect, this behavior can change it on the edge to a temporary 302
redirect.
Option | Type | Description | Requires | |
---|---|---|---|---|
statusCode | enum | The HTTP status code to replace the existing one. | {"displayType":"enum","options":["200","301","302","303","404","500","100","101","102","103","122","201","202","203","204","205","206","207","226","300","304","305","306","307","308","400","401","402","403","405","406","407","408","409","410","411","412","413","414","415","416","417","422","423","424","425","426","428","429","431","444","449","450","499","501","502","503","504","505","506","507","509","510","511","598","599"],"tag":"select"} | |
Supported values: 100 101 102 103 122 200 201 202 203 204 205 206 207 226 300 301 302 303 304 305 306 307 308 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 422 423 424 425 426 428 429 431 444 449 450 499 500 501 502 503 504 505 506 507 509 510 511 598 599 | ||||
override206 | boolean | Allows any specified | statusCode is 200 | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"statusCode","op":"eq","value":200}} |