Better error messages for non-existing API resources with Amazon API Gateway

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • apigw-non-existing-resource-error-msg

    Better error messages for 404 "path/method incorrect" APIGW errors

    You can find the code from this article in this GitHub repository.

  • Express

    Fast, unopinionated, minimalist web framework for node.

    Note In some cases, developers might use the ANY method with a "greedy" route for monolithic AWS Lambda deployments (think running express on AWS Lambda. While I'm not a fan of such practice, I also understand that it might work well for some. If that is the case for you, you should consider tackling the issue I'm describing using your framework of choice.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    The following is an AWS CDK TypeScript snippet that re-defines the gateway response in question.

  • aws-lambda-java-libs

    Official mirror for interface definitions and helper classes for Java code running on the AWS Lambda platform.

    This is, arguably, a more accessible, from the IaC configuration standpoint, variant to pull off. The "greedy" ANY route is backed by an AWS Lambda function. Since we have the power of a programing language at our disposal, one has the opportunity to tailor the "method/path does not exist on this API" message to a given API user.

  • aws-cdk

    The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code

    The following is an AWS CDK TypeScript snippet that re-defines the gateway response in question.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts