Small set of commonly used errors. Carefully designed and battle tested so you don't need to do it.
npm install @pallad/common-errors
All errors assume that code
property might be set for an error.
code
is used to uniquely specify what error is being thrown.