To my understanding, HTTP 201 should always return created entity and its
content should be based on Content-Type header field.
See
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
On Mon, 16 Dec 2013 16:25:53 -0500 (EST)
Vineet Reynolds Pereira <vpereira(a)redhat.com> wrote:
It would be better to treat this as a flag to be enabled during REST
resource
scaffolding. It would allow users to choose how the resource behaves -
* send a 201 response with Location header,
* send a 201 response with Location header and also a response entity.