Skip to content

Commit 3fffc7e

Browse files
thatshaileshtargos
authored andcommitted
errors: fix undefined HTTP2 and tls errors
Includes implementation of tls, HTTP2 error with documentation. PR-URL: #21564 Refs: #21440 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]>
1 parent c26ba08 commit 3fffc7e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

doc/api/errors.md

+10
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,11 @@ provided.
10141014

10151015
The `Http2Session` closed with a non-zero error code.
10161016

1017+
<a id="ERR_HTTP2_SETTINGS_CANCEL"></a>
1018+
### ERR_HTTP2_SETTINGS_CANCEL
1019+
1020+
The `Http2Session` settings canceled.
1021+
10171022
<a id="ERR_HTTP2_SOCKET_BOUND"></a>
10181023
### ERR_HTTP2_SOCKET_BOUND
10191024

@@ -1629,6 +1634,11 @@ recommended to use 2048 bits or larger for stronger security.
16291634
A TLS/SSL handshake timed out. In this case, the server must also abort the
16301635
connection.
16311636

1637+
<a id="ERR_TLS_RENEGOTIATE"></a>
1638+
### ERR_TLS_RENEGOTIATE
1639+
1640+
An attempt to renegotiate the TLS session failed.
1641+
16321642
<a id="ERR_TLS_RENEGOTIATION_DISABLED"></a>
16331643
### ERR_TLS_RENEGOTIATION_DISABLED
16341644

lib/internal/errors.js

+2
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ E('ERR_HTTP2_SEND_FILE', 'Directories cannot be sent', Error);
585585
E('ERR_HTTP2_SEND_FILE_NOSEEK',
586586
'Offset or length can only be specified for regular files', Error);
587587
E('ERR_HTTP2_SESSION_ERROR', 'Session closed with error code %s', Error);
588+
E('ERR_HTTP2_SETTINGS_CANCEL', 'HTTP2 session settings canceled', Error);
588589
E('ERR_HTTP2_SOCKET_BOUND',
589590
'The socket is already bound to an Http2Session', Error);
590591
E('ERR_HTTP2_STATUS_101',
@@ -812,6 +813,7 @@ E('ERR_TLS_CERT_ALTNAME_INVALID',
812813
'Hostname/IP does not match certificate\'s altnames: %s', Error);
813814
E('ERR_TLS_DH_PARAM_SIZE', 'DH parameter size %s is less than 2048', Error);
814815
E('ERR_TLS_HANDSHAKE_TIMEOUT', 'TLS handshake timeout', Error);
816+
E('ERR_TLS_RENEGOTIATE', 'Attempt to renegotiate TLS session failed', Error);
815817
E('ERR_TLS_RENEGOTIATION_DISABLED',
816818
'TLS session renegotiation disabled for this socket', Error);
817819

0 commit comments

Comments
 (0)