Thanks a lot Jörg Prante..

On Sunday, December 29, 2013 1:14:33 AM UTC+5:30, Jörg Prante wrote:
>
> As said, response "HTTP/1.1 400 Bad Request" is correct.
>
> Note that Content-type is text/plain, so echoing the URI should be safe, 
> it means, the content is not executable.
>
> If you want another response, here is the line that creates the response 
> in case no handler was found
>
>
> https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/RestController.java#L166
>
> I agree that it would be nicer to have ES REST return Content-Type 
> application/json only, and suppress the original URI in the response.
>
> Jörg
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/50fab84c-896b-4d51-8513-dc9d6141802a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to