{"library":"lambda-errors-formatter","type":"library","category":null,"description":"A utility for formatting AWS Lambda error responses into a consistent JSON structure with HTTP status codes, CORS headers, and serialized error messages. Version 0.5.0 is the latest stable release. It provides a simple API with helper methods for common HTTP errors (bad request, unauthorized, forbidden, not found, conflict, internal server error). Compared to alternatives like @middy/http-error-handler, this package is lighter and focuses on formatting errors rather than handling Lambda lifecycle. It is ESM-only? No, it uses CommonJS require. No recent updates; appears to be in maintenance mode.","language":"javascript","status":"maintenance","version":"0.5.0","tags":["javascript","aws","lambda","error","formatter"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install lambda-errors-formatter","imports":["const errorFormatter = require('lambda-errors-formatter')","errorFormatter.format('message')","errorFormatter.badRequest('message')"]},{"cmd":"yarn add lambda-errors-formatter","imports":[]},{"cmd":"pnpm add lambda-errors-formatter","imports":[]}],"homepage":"https://github.com/Palmabit-IT/lambda-errors-formatter#readme","github":"https://github.com/Palmabit-IT/lambda-errors-formatter","docs":null,"changelog":null,"pypi":null,"npm":"lambda-errors-formatter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}