Defined proper error json format