示例#1
0
 public static final function Raise502Error($y_msg)
 {
     //--
     if (!headers_sent()) {
         http_response_code(502);
     } else {
         Smart::log_warning('Headers Already Sent before 502 ...');
     }
     //end if else
     die(SmartComponents::http_message_502_badgateway(Smart::escape_html((string) $y_msg)));
     //--
 }