Error thrown by crypto middleware operations.
throw new CryptoMiddlewareError("Invalid token", 401, "INVALID_TOKEN"); Copy
throw new CryptoMiddlewareError("Invalid token", 401, "INVALID_TOKEN");
Create a new CryptoMiddlewareError with the given message, HTTP status code, and error code.
Readonly
HTTP status code to return.
Machine-readable error code.
Error thrown by crypto middleware operations.
Example