Controller actions can only return Cake\Network\Response or null. LogicException

Documentation API

If you want to customize this error message, create src/Template/Error/error500.ctp

toggle vendor stack frames