$error_messages]); }); Route::get('/', fn() => view('pages/home')); Route::get('/test/$whatever?', function($whatever = 'Default Value') { echo htmlspecialchars($whatever); }); Route::get('/error', fn() => 1 / 0); // since no route was matched we show a page not found error http_response_code(404); view('errors/404');