Skip to content

Commit ffa88d2

Browse files
committed
docs: add note about the status code for set404Override()
1 parent edb894f commit ffa88d2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

user_guide_src/source/incoming/routing.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,11 @@ a valid class/method pair, just like you would show in any route, or a Closure:
519519

520520
.. literalinclude:: routing/051.php
521521

522+
.. note:: The ``set404Override()`` method does not change the Response status code to ``404``.
523+
If you don't set the status code in the controller you set, the default status code ``200``
524+
will be returned. See :php:func:`Response::setStatusCode() <setStatusCode>` for
525+
information on how to set the status code.
526+
522527
Route processing by priority
523528
============================
524529

0 commit comments

Comments
 (0)