title: Laravel changing response header if validation fails/succeeds
body: <p>Laravel has this nice functionality to return JSON if your validation fails. </p>
  
  <p><a href="http://laravel.com/docs/5.0/validation#controller-validation" rel="nofollow">http://laravel.com/docs/5.0/validation#controller-validation</a></p>
  
  <p>Unfortunately, response headers are set <em>client-side</em> like below. It would seem that Laravel would account for successful validation and change the response header to HTML somehow. However, I'm not seeing this documented anywhere. Anyone have a clue? </p>
  
  <pre><code>$.ajax({
      dataType: "JSON",
      error: function(error){ //422 response, validation errors go here
      success: function(response) { //if validation successful
  </code></pre>
  
  <p><strong>update</strong>
  I"m using the Form Requests rather than controller-based validation, but this shouldn't make a difference.</p>