I am studying luminas mvc. MVC should always be developer friendly. Inside my module.config.php file I have defined hello route like below
'hello' => [
'type' => Segment::class,
'options' => [
'route' => '/hello',
'defaults' => [
'controller' => Controller\IndexController::class,
'action' => 'hellod',
],
],
],
In action key I have misspelled hellod instead of hello. So, now it should throw exception as method hellod is not defined or method undefined hellod in browser as error. Instead it’s showing 404 not found.
But according to route file I have hello route, that means it’s not 404. It’s status code should be 50.*; I request to modify this