response->setStatusCode(404); // Tampilkan view 404 return view('errors/notfound'); } }