Skip to content

Commit 3950a3e

Browse files
thatshaileshvsemozhetbyt
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 <matteo.collina@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
1 parent f9b739e commit 3950a3e

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

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

1632+
<a id="ERR_TLS_RENEGOTIATE"></a>
1633+
### ERR_TLS_RENEGOTIATE
1634+
1635+
An attempt to renegotiate the TLS session failed.
1636+
16271637
<a id="ERR_TLS_RENEGOTIATION_DISABLED"></a>
16281638
### ERR_TLS_RENEGOTIATION_DISABLED
16291639

lib/internal/errors.js

+2
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ E('ERR_HTTP2_SEND_FILE', 'Directories cannot be sent', Error);
582582
E('ERR_HTTP2_SEND_FILE_NOSEEK',
583583
'Offset or length can only be specified for regular files', Error);
584584
E('ERR_HTTP2_SESSION_ERROR', 'Session closed with error code %s', Error);
585+
E('ERR_HTTP2_SETTINGS_CANCEL', 'HTTP2 session settings canceled', Error);
585586
E('ERR_HTTP2_SOCKET_BOUND',
586587
'The socket is already bound to an Http2Session', Error);
587588
E('ERR_HTTP2_STATUS_101',
@@ -804,6 +805,7 @@ E('ERR_TLS_CERT_ALTNAME_INVALID',
804805
'Hostname/IP does not match certificate\'s altnames: %s', Error);
805806
E('ERR_TLS_DH_PARAM_SIZE', 'DH parameter size %s is less than 2048', Error);
806807
E('ERR_TLS_HANDSHAKE_TIMEOUT', 'TLS handshake timeout', Error);
808+
E('ERR_TLS_RENEGOTIATE', 'Attempt to renegotiate TLS session failed', Error);
807809
E('ERR_TLS_RENEGOTIATION_DISABLED',
808810
'TLS session renegotiation disabled for this socket', Error);
809811

0 commit comments

Comments
 (0)