In looking around, it's a bit inconsistent on what gets returned by errors for REST.
I've found:
{error: {code: 404, message: '...'}}
{type: '...', title: '...'}
{errors: [{status: '...', title: '...'}, ...]}
{message: '...'}
{code: '...', message: '...'}
Log in to comment on this ticket.