@rakered/errors
Convenient custom errors matching http status code

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

import { AuthenticationError } from '@rakered/errors';
throw new AuthenticationError('you need to be logged in');
// » { code: 401, message: 'you need to be logged in' }