diff --git a/doc/api/errors.md b/doc/api/errors.md
index f1508943624b8a..a7674c55665df9 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -2836,6 +2836,16 @@ Used when a given value is out of the accepted range.
The module must be successfully linked before instantiation.
+
+### `ERR_WORKER_UNSUPPORTED_EXTENSION`
+
+
+The pathname used for the main script of a worker has an
+unknown file extension.
+
### `ERR_ZLIB_BINDING_CLOSED`