A quick and easy way of generating errors for use with grpc
npm install --save grpc-errors
const grpcErrors = require('grpc-errors');
// Code...
var err = new grpcErrors.AlreadyExistsError('The file already exists!');
CancelledError
UnknownError
InvalidArgumentError
DeadlineExceededError
NotFoundError
AlreadyExistsError
PermissionDeniedError
UnauthenticatedError
ResourceExhaustedError
FailedPreconditionError
AbortedError
OutOfRangeError
UnimplementedError
InternalError
UnavailableError
DataLossError
UnauthenticatedError