When talking about the HTTP statuses. It's about the whole request. Livewire serves part of the page, not the whole page, not the whole response.
If you want to provide 404 code, then do that in the controller itself.
Is it possible to set the response status code? E.g I have a full-page livewire component that servers a pretty 404 but need to set the status code to 404.
Standard controller I do it by:
return response(view('products.not_available'), 404);
@gizmojo If you want the server to send 404 code for the response, then yes.
The way I do it is by using a controller to load data and then pass this data to the livewire component. But solution might not be good for all cases.
Please or to participate in this conversation.