public static function statusMessage($statusCode, $header = false) {
        $message = val($statusCode, self::$messages, 'Unknown');

        if ($header) {
            return "HTTP/1.1 $statusCode $message";
        } else {
            return $message;
        }
    }
public static function statusMessage($statusCode, $header = false) {
        $message = val($statusCode, self::$messages, 'Unknown');

        if ($header) {
            return "HTTP/1.1 $statusCode $message";
        } else {
            return $message;
        }
    }
public static function statusMessage ( $ statusCode , $ header = false ) { $ message = val ( $ statusCode , self :: $ messages , 'Unknown' ) ; if ( $ header ) { return "HTTP/1.1 $statusCode $message" ; } else { return $ message ; } }
Translate an http code to its corresponding status message.

@param int $statusCode The http status code.
@param bool $header Whether or not the result should be in a form that can be passed to {@link header}.
@return string Returns the status message corresponding to {@link $code}.
Translate an http code to its corresponding status message .