<commit_before><?php
if (!defined('BASE_PATH'))
    exit('No direct script access allowed');

// GET route
$app->get('/', function () use($app, $orm) {

    $app->view->display('index/index', ['title' => 'Liten Framework']);
});<commit_msg>Added example of error response when no router is found.<commit_after><?php
if (!defined('BASE_PATH'))
    exit('No direct script access allowed');

// GET route
$app->get('/', function () use($app, $orm) {

    $app->view->display('index/index', ['title' => 'Liten Framework']);
});

$app->setError(function() use($app) {
    
    echo $app->res->_format('json', $app->res->HTTP[404]);
    
});
{'fraction_non_alphanumeric': 0.23307086614173228, 'fraction_numerical': 0.004724409448818898, 'mean_word_length': 4.482758620689655, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '897157', 'n_tokens_mistral': 206, 'n_tokens_neox': 201, 'n_words': 50}