[ 
https://issues.apache.org/jira/browse/CAMEL-17040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17492560#comment-17492560
 ] 

Neo Xu commented on CAMEL-17040:
--------------------------------

If it is json response, can it be three different cases [], {}, ""?

> rest-dsl - Add option to return http 204 when no data in response
> -----------------------------------------------------------------
>
>                 Key: CAMEL-17040
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17040
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, rest
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.x
>
>
> For example if you have a json response as an empty list, then you can get a 
> 200 OK with [] as response.
> Or with an XML then it may be an empty xml root object.
> It may be desirable to have an option you can set to true to let Camel 
> auto-detect this and return no body and 204 instead.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to