[v11.x backport] src: add .code and SSL specific error properties
Backport-of: https://github.com/nodejs/node/pull/25093
It's on top of https://github.com/nodejs/node/pull/26952, but can be rebased once #26952 lands.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines