diff --git a/doc/api/errors.md b/doc/api/errors.md index 9c88b7d7d4de0f..c589fcd375136d 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -2708,6 +2708,20 @@ This error represents a failed test. Additional information about the failure is available via the `cause` property. The `failureType` property specifies what the test was doing when the failure occurred. + + +### `ERR_TLS_ALPN_CALLBACK_INVALID_RESULT` + +This error is thrown when an `ALPNCallback` returns a value that is not in the +list of ALPN protocols offered by the client. + + + +### `ERR_TLS_ALPN_CALLBACK_WITH_PROTOCOLS` + +This error is thrown when creating a `TLSServer` if the TLS options include +both `ALPNProtocols` and `ALPNCallback`. These options are mutually exclusive. + ### `ERR_TLS_CERT_ALTNAME_FORMAT` diff --git a/doc/api/tls.md b/doc/api/tls.md index ec2cb286fe31c6..9114748a923250 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -2045,6 +2045,9 @@ where `secureSocket` has the same API as `pair.cleartext`.