You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The browser shows a 200 response code, not a 502 as attempted within the route (hello-world.php). Obviously the Routes::load() method throws a 200 by default (which can be changed by passing a different code as the fourth parameter), but I'm wondering - is there a way that I can customize the status code within the loaded route?
The text was updated successfully, but these errors were encountered:
Example:
Add to functions.php:
hello-world.php:
The browser shows a 200 response code, not a 502 as attempted within the route (
hello-world.php
). Obviously theRoutes::load()
method throws a 200 by default (which can be changed by passing a different code as the fourth parameter), but I'm wondering - is there a way that I can customize the status code within the loaded route?The text was updated successfully, but these errors were encountered: