It might be more interesting to include 'errReason' instead of 'errDetail'.
Really, createEntity should be changed to return only ONE string.