Back to Templates
Custom Rate Limiting
Invoke the Rate Limit policy programatically and then modify the 429 response.
Categories:
ProgrammabilityRate Limiting
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
npx create-zuplo-api@latest my-api --example custom-429-response
Then, in the project directory run the following commands:
npm install
npm run dev
Discover More Examples
Remote MCP Server with OAuth
A remote MCP Server that shows how to setup OAuth authentication with Auth0
Model Context Protocol (MCP)
Dev Portal with API Keys
An example of a Zuplo Dev Portal with support for self-serve API key creation.
Authentication
Remote MCP Server
Create a remote MCP server for an API with authentication and additional security policies.
Model Context Protocol (MCP)
Metering with OpenMeter
Meter requests, enforce plan limits and monetize your API by integrating Zuplo with OpenMeter.
Monetization