@middy/http-error-handler
Version:
HTTP error handler middleware for the middy framework
13 lines (9 loc) • 361 B
TypeScript
// Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors.
// SPDX-License-Identifier: MIT
import type middy from "@middy/core";
export interface Options {
logger?: ((error: any) => void) | boolean;
fallbackMessage?: string;
}
declare function httpErrorHandler(options?: Options): middy.MiddlewareObj;
export default httpErrorHandler;