From eae5de18e86bf4df89a1eb27cfdaefb318f18110 Mon Sep 17 00:00:00 2001 From: Gary Sassano <10464497+garysassano@users.noreply.github.com> Date: Sun, 24 Mar 2024 17:42:54 +0100 Subject: [PATCH] add missing import to `http-error-handler.md` --- website/docs/middlewares/http-error-handler.md | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/middlewares/http-error-handler.md b/website/docs/middlewares/http-error-handler.md index c23e90b62..d2517210d 100644 --- a/website/docs/middlewares/http-error-handler.md +++ b/website/docs/middlewares/http-error-handler.md @@ -27,6 +27,7 @@ npm install --save @middy/http-error-handler ```javascript import middy from '@middy/core' import httpErrorHandler from '@middy/http-error-handler' +import createError from 'http-errors' const lambdaHandler = (event, context) => { throw new createError.UnprocessableEntity()