Error format - code and msg are the mandatory fields