added more json error messages