I have created my own 404 error template in "views/errors/404.blade.php". However I'd like to get the current status code (404) in the template or its parent layouts extended in it.
app('Illuminate\Http\Response')->status() returns me
200 as I'm expecting to get
What's the problem?