mendix / RestServices

REST service module for Mendix. Supports consuming and publishing REST based services and real-time data synchronization. Supports JSON, form-encoded, multipart and binary data transport.
Apache License 2.0
31 stars 46 forks source link

Rest module always returns HTTP status 200 when microflow service was executed succesfully, even if there is no response #31

Closed sjoerdbreur-zz closed 9 years ago

sjoerdbreur-zz commented 10 years ago

Should return 204 if this is the case.

mweststrate commented 9 years ago

To keep the responses of the module predicatable I think it is better to keep the result status by default to 200 in all cases. 204 is nicer indeed if there is no response, as is a 201 if a new resource is created. But since the latter cannot be detected reliably in a microflow services, I don't think the first should be done automatically as well.

Anyway, you can easily set the return status to 204 from within the microflow by using the setResponseStatus action.