Zuplo logo

Starter Templates

Jumpstart your API gateway development process with our pre-built starter templates

Templates

Custom Rate Limiting

Invoke the Rate Limit policy programatically and then modify the 429 response.

Programmability
Rate Limiting
Run Locally
npx create-zuplo-api --example custom-429-response

Custom Rate Limit Body

This sample demonstrates how to invoke the Rate Limit policy programmatically and then modify the 429 response body with additional context information.

Use this example locally

To develop with this example locally, you can create a new Zuplo project using our CLI

Terminalbash
npx create-zuplo-api@latest my-api --example custom-429-response

Then, in the project directory run the following commands:

Terminalbash
npm install
npm run dev