How do I return a custom error message when accessing a routing address that does not exist in thinkPHP?

now when you access a routing address that does not exist, an error page appears showing "the current access route is not defined".

how to set up a routing address that does not exist to return a specified content, such as returning a JSON, or jumping to a specified page?

clipboard.png

Php
Apr.29,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5ce98-456fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5ce98-456fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?