That should be changed too then. :)

-- 
Phil Sturgeon

On May 24, 2014 at 12:02:18 AM, Hunter Skrasek (notifications@github.com) wrote:

In src/Routing/Router.php:

>                        $response = Response::makeFromExisting($response)->morph($this->requestedFormat);
>            }
>   
> +          // Force the response to always return "200 OK"
> +          // Chances are if the client is requesting jsonp their browser
> +          // wont implement 422 etc and will drop the body
> +          if ($this->requestedFormat == 'jsonp') {
> +                  if (!in_array($response->getStatusCode(), [404, 200])) {
> +                          $response->setStatusCode(200);
> +                  }
> +          }
> +
The 422's I believe are hardcoded into the dingo exceptions for store, update, and delete. But I could be mistaken. 
…
—
Reply to this email directly or view it on GitHub.