Errors
Filename and LineNumber default
.name is Error default but there are more
.stack is call stack that most envs give
New and just Error
are same
Usage
Error has name, message and can have custom info/code
could technically throw and catch anything
Custom Errors
Common Custom Errors
Axios
err.response
HTTP
Check out http-errors Node package or HTTP Fundamentals
Last updated