@@ -513,7 +513,7 @@ provided by Symfony:
513513 # the path of the template to render
514514 template : ' static/privacy.html.twig'
515515
516- # the status code to include in the response headers
516+ # the response status code (default: 200)
517517 statusCode : 200
518518
519519 # special options defined by Symfony to set the page cache
@@ -542,6 +542,9 @@ provided by Symfony:
542542 <!-- the path of the template to render -->
543543 <default key =" template" >static/privacy.html.twig</default >
544544
545+ <!-- the response status code (default: 200) -->
546+ <default key =" statusCode" >200</default >
547+
545548 <!-- special options defined by Symfony to set the page cache -->
546549 <default key =" maxAge" >86400</default >
547550 <default key =" sharedAge" >86400</default >
@@ -570,6 +573,9 @@ provided by Symfony:
570573 // the path of the template to render
571574 'template' => 'static/privacy.html.twig',
572575
576+ // the response status code (default: 200)
577+ 'statusCode' => 200,
578+
573579 // special options defined by Symfony to set the page cache
574580 'maxAge' => 86400,
575581 'sharedAge' => 86400,
@@ -590,6 +596,10 @@ provided by Symfony:
590596
591597 The ``context `` option was introduced in Symfony 5.1.
592598
599+ .. versionadded :: 5.4
600+
601+ The ``statusCode `` option was introduced in Symfony 5.4.
602+
593603Checking if a Template Exists
594604~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
595605
0 commit comments