Mine is a single-page website, and the page will obtain a csrf token when it is loaded for the first time, but this token will time out. When it times out, a "TokenMismatchException" error will be reported and the response code is 500. If Normal access is 200. Now I need to change the error response code of this TokenMismatchException to 509. What should I do?
Exceptions/handler.php ----》 report