public static final function Raise504Error($y_msg) { //-- if (!headers_sent()) { http_response_code(504); } else { Smart::log_warning('Headers Already Sent before 504 ...'); } //end if else die(SmartComponents::http_message_504_gatewaytimeout(Smart::escape_html((string) $y_msg))); //-- }