GuideReference
TrainingSupportCommunity
Reference

response_​code

  • Property Manager name: Set Response Code
  • Behavior version: The v2023-01-05 rule format supports the response_​code behavior v1.1.
  • Rule format status: GA, stable
  • Access: Read/Write
  • Allowed in includes: Yes

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.

OptionTypeDescriptionRequires
status_​codeenum

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
override206boolean

Allows any specified 200 success code to override a 206 partial-content code, in which case the response's content length matches the requested range length.

status_​code is 200
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"statusCode","op":"eq","value":200}}