[OSM-dev] Finding parent ways of a node - 400 error - inappropriate?
Tom Hughes
tom at compton.nu
Wed Nov 21 11:18:03 GMT 2007
On Nov 21, 2007 8:37 AM, Nick Whitelegg <Nick.Whitelegg at solent.ac.uk> wrote:
> > Can you clarify what request it is you're making that is returning
> > this error? Perhaps give an example so I can test it out?
>
> I don't really have the editing software to hand now, but any request for
> which the node has no parent ways appears to raise the 400 error. I can
> give you a definite example later.
It's OK - I can see the code in the controller and it does return 400
if nothing is found.
The equivalent code in the relation controller actually returns 404
Not Found in the same circumstances. Do you think that is better? or
would you prefer 200 OK and an empty document? I can see arguments for
both...
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the dev
mailing list