error message is returned in json object