Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@keboola/serverless-default-error-responses

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keboola/serverless-default-error-responses

Serverless plugin that adds unified API Gateway responses for error states

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

serverless-default-error-responses

serverless Build Status

Serverless plugin that adds unified API Gateway responses for error states. It adds CORS headers to all 4xx and 5xx API responses and formats output for users like this:

{
  "errorMessage": "Application Error", 
  "errorType": "ApplicationError", 
  "apiRequestId": "2e2819fa-c93c-11e7-a46f-91ce8f8df51e"
}

It hides real error reason in case of 5xx errors and replaces it for Application Error. It also adds API Gateway request id for potential further investigation in CloudWatch logs.

Installation

  1. Install npm package: yarn add @keboola/serverless-default-error-responses
  2. Add plugin to your serverless.yml:
plugins:
- '@keboola/serverless-default-error-responses'

FAQs

Package last updated on 15 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc