Because some operators, routers, browsers and so on;
Requests that are not 200 status are intercepted, and then changed to their ad or custom page;
So the question comes; ask the parents;
Where is laravel, and can control the value of all returned Status_code?
The effect I want to achieve is; all AJAX requests; the return is 200;
Humbly
--------------------------Split Line--------------------
Because also involves Dingo, JWT and so on too many problems;
Temporarily abandon the practice of unifying status_code;
When there is a good plan, fill this hole again;
Reply content:
Because some operators, routers, browsers and so on;
Requests that are not 200 status are intercepted, and then changed to their ad or custom page;
So the question comes; ask the parents;
Where is laravel, and can control the value of all returned Status_code?
The effect I want to achieve is; all AJAX requests; the return is 200;
Humbly
--------------------------Split Line--------------------
Because also involves Dingo, JWT and so on too many problems;
Temporarily abandon the practice of unifying status_code;
When there is a good plan, fill this hole again;
Error thrown is a file controlled by a framework class within the Symfony/Component/Debug/Exception/FlattenException
/vendor/symfony/debug/exceptionflattenexception.php
Modify the Create method, and there may be other things you can try to modify
if (null === $statusCode) { $statusCode = 200;}