Skip to content

419 Page Expired

An unofficial code (popularized by Laravel) used to indicate a missing or expired CSRF token.

Use this if your framework supports CSRF protection, and a form submission is rejected because the security token has expired.

import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => {
throw new HttpException('Page Expired', 419);
});