Problem Details
HTTP problem details model based on RFC7807. This package wraps the default Error
object to throw better defined errors which are previously registered. This ensures that thrown errors are more consistent.
Install
npm install --save problem-details
Basic Example
; // setup definition factoryconst definitionFactory = ;definitionFactory; // setup detail factoryconst detailFactory = definitionFactory; // ...// throw errorthrow detailFactory;