How do I set the response status code?

There may be situations where the HTTP response status needs to be altered. By default, the returned status is 200, however, this can be changed by passing the new status code to the setStatus() method:

\Aero\Store\Http\Responses\ProductPage::extend(function ($page) {

Articles in this section

Was this article helpful?
0 out of 0 found this helpful