@@ 12-21 (lines=10) @@ | ||
9 | /** |
|
10 | * Internal route for handling 403 |
|
11 | */ |
|
12 | $app->router->addInternal("403", function () use ($app) { |
|
13 | $app->dispatcher->forward([ |
|
14 | "controller" => "error", |
|
15 | "action" => "statusCode", |
|
16 | "params" => [ |
|
17 | "code" => 403, |
|
18 | "message" => "HTTP Status Code 403: This is a forbidden route.", |
|
19 | ], |
|
20 | ]); |
|
21 | })->setName("403"); |
|
22 | ||
23 | ||
24 | ||
@@ 49-58 (lines=10) @@ | ||
46 | /** |
|
47 | * Internal route for handling 500 |
|
48 | */ |
|
49 | $app->router->addInternal("500", function () { |
|
50 | $app->dispatcher->forward([ |
|
51 | "controller" => "error", |
|
52 | "action" => "statusCode", |
|
53 | "params" => [ |
|
54 | "code" => 500, |
|
55 | "message" => "HTTP Status Code 500: There was an internal server or processing error.", |
|
56 | ], |
|
57 | ]); |
|
58 | })->setName("500"); |
|
59 |