grpc-create-error

JSON →
library 2.0.0 ·javascript maintenance
verified Jun 7, 2026

Utility package (v2.0.0) for creating Error objects with gRPC status codes and metadata. Works with the `grpc` and `@grpc/grpc-js` libraries. Provides a flexible function that accepts message, code, and metadata in various forms (string, number, Error instance, plain object). Low-activity project; last release May 2018. Simpler than full gRPC error classes; useful for quick error construction.