doc: sort error codes in errors.md
A single exception is that ERR_HTTP2_* comes after ERR_HTTP_*. Actual content not changed, just some blocks are moved around. This is a part of the fixes hinted by #21470, which includes some tests for error codes usage and documentation and enforces a stricter format. PR-URL: https://github.com/nodejs/node/pull/21485 Refs: https://github.com/nodejs/node/pull/21470 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
parent
baca6d337f
commit
5ab3db75bb
@ -875,12 +875,6 @@ forbidden.
|
|||||||
New HTTP/2 Streams may not be opened after the `Http2Session` has received a
|
New HTTP/2 Streams may not be opened after the `Http2Session` has received a
|
||||||
`GOAWAY` frame from the connected peer.
|
`GOAWAY` frame from the connected peer.
|
||||||
|
|
||||||
<a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a>
|
|
||||||
### ERR_HTTP2_HEADER_SINGLE_VALUE
|
|
||||||
|
|
||||||
Multiple values were provided for an HTTP/2 header field that was required to
|
|
||||||
have only a single value.
|
|
||||||
|
|
||||||
<a id="ERR_HTTP2_HEADERS_AFTER_RESPOND"></a>
|
<a id="ERR_HTTP2_HEADERS_AFTER_RESPOND"></a>
|
||||||
### ERR_HTTP2_HEADERS_AFTER_RESPOND
|
### ERR_HTTP2_HEADERS_AFTER_RESPOND
|
||||||
|
|
||||||
@ -891,6 +885,12 @@ An additional headers was specified after an HTTP/2 response was initiated.
|
|||||||
|
|
||||||
An attempt was made to send multiple response headers.
|
An attempt was made to send multiple response headers.
|
||||||
|
|
||||||
|
<a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a>
|
||||||
|
### ERR_HTTP2_HEADER_SINGLE_VALUE
|
||||||
|
|
||||||
|
Multiple values were provided for an HTTP/2 header field that was required to
|
||||||
|
have only a single value.
|
||||||
|
|
||||||
<a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a>
|
<a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a>
|
||||||
### ERR_HTTP2_INFO_STATUS_NOT_ALLOWED
|
### ERR_HTTP2_INFO_STATUS_NOT_ALLOWED
|
||||||
|
|
||||||
@ -1486,6 +1486,12 @@ does not allow `stdout` or `stderr` streams to be closed by user code.
|
|||||||
|
|
||||||
An attempt was made to call [`stream.pipe()`][] on a [`Writable`][] stream.
|
An attempt was made to call [`stream.pipe()`][] on a [`Writable`][] stream.
|
||||||
|
|
||||||
|
<a id="ERR_STREAM_DESTROYED"></a>
|
||||||
|
### ERR_STREAM_DESTROYED
|
||||||
|
|
||||||
|
A stream method was called that cannot complete because the stream was
|
||||||
|
destroyed using `stream.destroy()`.
|
||||||
|
|
||||||
<a id="ERR_STREAM_NULL_VALUES"></a>
|
<a id="ERR_STREAM_NULL_VALUES"></a>
|
||||||
### ERR_STREAM_NULL_VALUES
|
### ERR_STREAM_NULL_VALUES
|
||||||
|
|
||||||
@ -1535,6 +1541,12 @@ instance.setEncoding('utf8');
|
|||||||
An attempt was made to call [`stream.write()`][] after `stream.end()` has been
|
An attempt was made to call [`stream.write()`][] after `stream.end()` has been
|
||||||
called.
|
called.
|
||||||
|
|
||||||
|
<a id="ERR_STRING_TOO_LONG"></a>
|
||||||
|
### ERR_STRING_TOO_LONG
|
||||||
|
|
||||||
|
An attempt has been made to create a string longer than the maximum allowed
|
||||||
|
length.
|
||||||
|
|
||||||
<a id="ERR_SYSTEM_ERROR"></a>
|
<a id="ERR_SYSTEM_ERROR"></a>
|
||||||
### ERR_SYSTEM_ERROR
|
### ERR_SYSTEM_ERROR
|
||||||
|
|
||||||
@ -1542,18 +1554,6 @@ An unspecified or non-specific system error has occurred within the Node.js
|
|||||||
process. The error object will have an `err.info` object property with
|
process. The error object will have an `err.info` object property with
|
||||||
additional details.
|
additional details.
|
||||||
|
|
||||||
<a id="ERR_STREAM_DESTROYED"></a>
|
|
||||||
### ERR_STREAM_DESTROYED
|
|
||||||
|
|
||||||
A stream method was called that cannot complete because the stream was
|
|
||||||
destroyed using `stream.destroy()`.
|
|
||||||
|
|
||||||
<a id="ERR_STRING_TOO_LONG"></a>
|
|
||||||
### ERR_STRING_TOO_LONG
|
|
||||||
|
|
||||||
An attempt has been made to create a string longer than the maximum allowed
|
|
||||||
length.
|
|
||||||
|
|
||||||
<a id="ERR_TLS_CERT_ALTNAME_INVALID"></a>
|
<a id="ERR_TLS_CERT_ALTNAME_INVALID"></a>
|
||||||
### ERR_TLS_CERT_ALTNAME_INVALID
|
### ERR_TLS_CERT_ALTNAME_INVALID
|
||||||
|
|
||||||
@ -1574,6 +1574,11 @@ recommended to use 2048 bits or larger for stronger security.
|
|||||||
A TLS/SSL handshake timed out. In this case, the server must also abort the
|
A TLS/SSL handshake timed out. In this case, the server must also abort the
|
||||||
connection.
|
connection.
|
||||||
|
|
||||||
|
<a id="ERR_TLS_RENEGOTIATION_DISABLED"></a>
|
||||||
|
### ERR_TLS_RENEGOTIATION_DISABLED
|
||||||
|
|
||||||
|
An attempt was made to renegotiate TLS on a socket instance with TLS disabled.
|
||||||
|
|
||||||
<a id="ERR_TLS_REQUIRED_SERVER_NAME"></a>
|
<a id="ERR_TLS_REQUIRED_SERVER_NAME"></a>
|
||||||
### ERR_TLS_REQUIRED_SERVER_NAME
|
### ERR_TLS_REQUIRED_SERVER_NAME
|
||||||
|
|
||||||
@ -1592,11 +1597,6 @@ vector for denial-of-service attacks.
|
|||||||
An attempt was made to issue Server Name Indication from a TLS server-side
|
An attempt was made to issue Server Name Indication from a TLS server-side
|
||||||
socket, which is only valid from a client.
|
socket, which is only valid from a client.
|
||||||
|
|
||||||
<a id="ERR_TLS_RENEGOTIATION_DISABLED"></a>
|
|
||||||
### ERR_TLS_RENEGOTIATION_DISABLED
|
|
||||||
|
|
||||||
An attempt was made to renegotiate TLS on a socket instance with TLS disabled.
|
|
||||||
|
|
||||||
<a id="ERR_TRACE_EVENTS_CATEGORY_REQUIRED"></a>
|
<a id="ERR_TRACE_EVENTS_CATEGORY_REQUIRED"></a>
|
||||||
### ERR_TRACE_EVENTS_CATEGORY_REQUIRED
|
### ERR_TRACE_EVENTS_CATEGORY_REQUIRED
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user