Setting an error handler into app.php.
Error handler and conditional messages. Also documentation for actions, on app.php.