From 86adce73e29f50635470fa76bfda179cf588a603 Mon Sep 17 00:00:00 2001 From: Alexander Makarenko Date: Wed, 16 Jul 2025 01:40:24 +0200 Subject: [PATCH 1/2] doc: fix missing link to the Error documentation in the `http` page --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index 29976d9b504390..c4855aecc61b1e 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2588,7 +2588,7 @@ will check whether `Content-Length` and the length of the body which has been transmitted are equal or not. Attempting to set a header field name or value that contains invalid characters -will result in a \[`Error`]\[] being thrown. +will result in a {Error} being thrown. ### `response.writeProcessing()` From 9a23ef7da0fcad66732440683c31d38e12b5a5c1 Mon Sep 17 00:00:00 2001 From: Alexander Makarenko Date: Sat, 16 Aug 2025 23:33:06 +0200 Subject: [PATCH 2/2] doc: use `TypeError` instead of `Error` in a section of `http` page Co-authored-by: Daeyeon Jeong --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index c4855aecc61b1e..2a0570a32e7353 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2588,7 +2588,7 @@ will check whether `Content-Length` and the length of the body which has been transmitted are equal or not. Attempting to set a header field name or value that contains invalid characters -will result in a {Error} being thrown. +will result in a [`TypeError`][] being thrown. ### `response.writeProcessing()`