Convenient custom errors matching http status code
npm install @rakered/errorsConvenient custom errors matching http status code
``js
import { AuthenticationError } from '@rakered/errors';
throw new AuthenticationError('you need to be logged in');
// » { code: 401, message: 'you need to be logged in' }
``