Error handling in Controllers (typo's etc)

Hi guys/girls/x,

I have two questions.
First one: if there is an typo in the route file there is no error message / handling. Can I or can this be adjusted?

Then the (for me) more complicated; question two:
In my controller I had an function. Perhaps there is an type in the file. The whole controller/functions breaks but without an error. Can I or can this be adjusted?

	public function getSomeData($request, $response, $args)
	{
		$arr = array(
			[0] => array ("id" => "1", "name" => "Room 1", "capacity" => "2", "status" => "Dirty"),
			[1] => array ("id" => "2", "name" => "Room 2", "capacity" => "4", "status" => "Ready"),
			[2] => array ("id" => "3", "name" => "Room 3", "capacity" => "2", "status" => "Cleanup"),
			[3] => array ("id" => "4", "name" => "Room 4", "capacity" => "1", "status" => "Ready"),
			[4] => array ("id" => "5", "name" => "Room 5", "capacity" => "2", "status" => "In Use"),
		);

		return $arr;
	}