UNPKG

@substrate/api-sidecar

Version:

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.

14 lines (13 loc) 376 B
import { ErrorRequestHandler } from 'express'; /** * Handle HttpError instances. * * Should be put before middleware that handles Error, since HttpError * inherits from Error. * * @param exception unknown * @param _req Express Request * @param res Express Response * @param next Express NextFunction */ export declare const httpErrorMiddleware: ErrorRequestHandler;