Custom error factory for microservices with HTTP code and internal type props Edit
Install
npm install interference
Usage
const err = if && errtype === 'FUTURAMA' console
Factory Signature
message: string type?: string details?: any code?: number : Interference