419 Page Expired

Laravel's code for a missing or expired CSRF token, most often seen when a form is submitted after the session lapsed.

Status

HTTP/1.1 419 Page Expired

Details

Laravel's VerifyCsrfToken middleware rejects requests whose CSRF token is absent, stale, or does not match the session, and it uses 419 rather than the more conventional 403. The user-visible symptom is a form that fails on submit after the page has been open for a while.

Since it is not a registered code, nothing outside the Laravel ecosystem interprets it. Treat it as a session or token problem specific to that framework.

Common causes

How to fix it

As the client

As the server

Examples

POST /profile HTTP/1.1
Host: app.example.com
Content-Type: application/x-www-form-urlencoded

name=Alex

HTTP/1.1 419 Page Expired

See also