replaced "reason" with "details" in json_status method