Easily define custom error types in Node.js