http: Separate constant variable for TypeError & error
Using constants is more a way of defensive programming, also it improves performance optimization. Most importantly, it is for human reader.
Since I have made a nice cleanup to make a separate constant variable for ErrorType
and error
in lib/_http_client.js
.
Checklist
-
commit message follows commit guidelines
Affected core subsystem(s)
_http_client.js