http 418 error code example

Example 1: error 418

Error 418 - I'm a teapot was an april fools joke that was made in 1998 & 2014 which was a part of the HTCPCP extension HTCPCP-TEA which was also a part of the april fools joke. Error 418 was eventually gonna get removed but then a movement started named "save 418" saying the internet would be somewhat incomplete without it and it succeded so now error code 418 has become a part of the official web. https://www.google.com/teapot

Example 2: HTTP call status: 419

Use this in the head section:

<meta name="csrf-token" content="{{ csrf_token() }}">

and get the csrf token in ajax:
$.ajaxSetup({
  headers: {
    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  }
});

Tags:

Misc Example