Excluding header and footer from error on CLI request