Skip to content

Commit 56c7d08

Browse files
only treat any HTTP Status Codes 400 or higher as errors (#61)
1 parent 57ec3dd commit 56c7d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinkValidator/Util/MarkdownHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static string GenerateMarkdown(AbsoluteUri baseUri,
3131
document.Root.Add(new MdTable(headerRow, rows));
3232

3333
// Add broken links summary organized by source page
34-
var brokenLinks = results.Where(kvp => kvp.Value.StatusCode != HttpStatusCode.OK).ToList();
34+
var brokenLinks = results.Where(kvp => kvp.Value.StatusCode >= HttpStatusCode.BadRequest).ToList();
3535
if (brokenLinks.Any())
3636
{
3737
document.Root.Add(new MdHeading(2, "🔴 Pages with Broken Links"));

0 commit comments

Comments
 (0)