@rakered/errors
v1.1.0
Published
Convenient custom errors matching http status code
Downloads
31
Readme
@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' }