@@ -513,7 +513,7 @@ provided by Symfony:
513
513
# the path of the template to render
514
514
template : ' static/privacy.html.twig'
515
515
516
- # the status code to include in the response headers
516
+ # the response status code (default: 200)
517
517
statusCode : 200
518
518
519
519
# special options defined by Symfony to set the page cache
@@ -542,6 +542,9 @@ provided by Symfony:
542
542
<!-- the path of the template to render -->
543
543
<default key =" template" >static/privacy.html.twig</default >
544
544
545
+ <!-- the response status code (default: 200) -->
546
+ <default key =" statusCode" >200</default >
547
+
545
548
<!-- special options defined by Symfony to set the page cache -->
546
549
<default key =" maxAge" >86400</default >
547
550
<default key =" sharedAge" >86400</default >
@@ -570,6 +573,9 @@ provided by Symfony:
570
573
// the path of the template to render
571
574
'template' => 'static/privacy.html.twig',
572
575
576
+ // the response status code (default: 200)
577
+ 'statusCode' => 200,
578
+
573
579
// special options defined by Symfony to set the page cache
574
580
'maxAge' => 86400,
575
581
'sharedAge' => 86400,
@@ -590,6 +596,10 @@ provided by Symfony:
590
596
591
597
The ``context `` option was introduced in Symfony 5.1.
592
598
599
+ .. versionadded :: 5.4
600
+
601
+ The ``statusCode `` option was introduced in Symfony 5.4.
602
+
593
603
Checking if a Template Exists
594
604
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
595
605
0 commit comments