title: Laravel - Return json along with http status code
body: <p>If I return an object:</p>
  
  <pre><code>return Response::json([
      'hello' =&gt; $value
  ]);
  </code></pre>
  
  <p>the status code will be 200. How can I change it to 201, with a message and send it with the json object?.</p>
  
  <p>I don't know if there is a way to just set the status code in Laravel.</p>