public static function mayHaveBody($code)
    {
        return

            // True if not in 100s

            ($code < self::HTTP_CONTINUE || $code >= self::HTTP_OK)

            && // and not 204 NO CONTENT

            $code != self::HTTP_NO_CONTENT

            && // and not 304 NOT MODIFIED

            $code != self::HTTP_NOT_MODIFIED;
    }
public static function mayHaveBody($code)
    {
        return

            // True if not in 100s

            ($code < self::HTTP_CONTINUE || $code >= self::HTTP_OK)

            && // and not 204 NO CONTENT

            $code != self::HTTP_NO_CONTENT

            && // and not 304 NOT MODIFIED

            $code != self::HTTP_NOT_MODIFIED;
    }
public static function mayHaveBody ( $ code ) { return // True if not in 100s ( $ code < self :: HTTP_CONTINUE || $ code >= self :: HTTP_OK ) && // and not 204 NO CONTENT $ code != self :: HTTP_NO_CONTENT && // and not 304 NOT MODIFIED $ code != self :: HTTP_NOT_MODIFIED ; }
Returns true for HTTP response codes that may have body.

@param int $code The HTTP response code

@return bool
Returns true for HTTP response codes that may have body .