Description
When implementing an AbstractResource, if ResourceResponse#setStatusCode is called, the HTTP body of the response comes back empty. I'm pretty sure this is due to the following check in AbstractResource#respond:
if (!data.dataNeedsToBeWritten(attributes) || data.getErrorCode() != null || data.getStatusCode() != null)
{
return;
}
There are many HTTP status codes that are not errors that might warrant an HTTP body.