how to get http server status code in laravel 5.8 code example
Example: ensure a header is included with request laravel
// Returns header value with default as fallback
$request->header('someHeader', 'defaultValue');
// Returns boolean
$request->headers->has('someHeader');