laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.75k stars 291 forks source link

TokenMismatchException returns HTTP status code 200 instead of 419 #291

Closed sikhlana closed 3 years ago

sikhlana commented 3 years ago

Description:

Laravel's default exception handler sets the HTTP status code to 419 when a Illuminate\Session\TokenMismatchException is thrown by the system.

Running php artisan serve yields the expected result but not php artisan octane:start.

Steps To Reproduce:

  1. Create a new "test" route than only throws the above mentioned exception
  2. Start the octane instance
  3. Call the route from your browser of choice with network monitor enabled
  4. Check that the responded status code is 200 instead of 419
sikhlana commented 3 years ago

RoadRunner responds with the correct HTTP status code.