Thanks for clearing that up Phil.

Yeah the 422's are coming from the api internals. Will amend and fix in a
bit. If 422 is for WebDAV is make sense for phonegap not to support it.


On Sat, May 24, 2014 at 9:03 AM, Phil Sturgeon <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);
> > +			}
> > +		}
> > +
>
> 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.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dingo/api/pull/35/files#r13022269>
> .
>



-- 
Arnold Almeida
+61 432 149 788
arnold@floatingpoints.com.au

========================
Floating Points // Digital Direction
floatingpoints.com.au