Crypto Middleware
    Preparing search index...

    Class CryptoMiddlewareError

    Error thrown by crypto middleware operations.

    throw new CryptoMiddlewareError("Invalid token", 401, "INVALID_TOKEN");
    

    Hierarchy

    • Error
      • CryptoMiddlewareError
    Index
    • Create a new CryptoMiddlewareError with the given message, HTTP status code, and error code.

      Parameters

      • message: string
      • statusCode: number
      • code: string

      Returns CryptoMiddlewareError

    statusCode: number

    HTTP status code to return.

    code: string

    Machine-readable error code.