Jeffrey Soong said almost 3 years ago on API Structure and Error Handling :
Really awesome way to refactor the json_render. I've always felt something can be done there, but I could never quite place my finger on it. The consistency part really resonates, and for error responses, I return @resource.errors.full_messages so that I get an array of strings in human readable sentence.