How to get Proper status code with laravel 5 API
<p>How can i get the Status code while creating an API with laravel5.</p>

<p>Here is what i am trying to do.</p>

<p>return Response::json(
           array(
            'error' => false,
            'results' => $results,
            'status_code' => 200 etc
        ));</p>

<p>All i want to change this status code,as it may be 404,201 etc</p>