#900 add error option in exec_json, exec_html