public static function sendFailure($reason) { Res::json_reply(array('status' => "failed", "reason" => $reason)); }