src/server/core.js
/**
     * Formats HTTP response code
     * @static
     * @param {number} code HTTP response code
     * @returns {string} Formatted _and colorized_ HTTP response code
     */
Formats HTTP response code
@static
@param {number} code HTTP response code
@returns {string} Formatted _and colorized_ HTTP response code
Formats HTTP response code @static @param { number } code HTTP response code @returns { string } Formatted _and colorized_ HTTP response code
static formatHttpCode(code)
     {
         switch(code)
         {
             case 200:
                 code = `${Core.COLOR.FGGREEN}${code}${Core.COLOR.RESET}`;
                 break;
             case 301:
             case 302:
                 code = `${Core.COLOR.FGYELLOW}${code}${Core.COLOR.RESET}`;
                 break;
             default:
                 code = `${Core.COLOR.FGRED}${code}${Core.COLOR.RESET}`;
         }
         return code;
     }
static formatHttpCode ( code ) { switch ( code ) { case 200 : code = ` ${ Core . COLOR . FGGREEN } ${ code } ${ Core . COLOR . RESET } ` ; break ; case 301 : case 302 : code = ` ${ Core . COLOR . FGYELLOW } ${ code } ${ Core . COLOR . RESET } ` ; break ; default : code = ` ${ Core . COLOR . FGRED } ${ code } ${ Core . COLOR . RESET } ` ; } return code ; }
Formats HTTP response code
 @static
 @param {number} code HTTP response code
 @returns {string} Formatted _and colorized_ HTTP response code
Formats HTTP response code @static @param { number } code HTTP response code @returns { string } Formatted _and colorized_ HTTP response code