All samples

Simulate rate limiting and errors on Postmark APIs

This sample contains a preset to simulate rate limiting and random errors on Postmark APIs. Postmark APIs support rate limiting, which is a mechanism that informs developers of the available server resources and allows them to increase the data throughput by staying under the rate limits and avoiding throttling.

Waldek Mastykarz

Simulate rate limiting and errors on Postmark APIs

Summary

This sample contains a preset to simulate rate limiting and random errors on Postmark APIs. Postmark APIs support rate limiting, which is a mechanism that informs developers of the available server resources and allows them to increase the data throughput by staying under the rate limits and avoiding throttling.

Dev Proxy simulating errors on Postmark APIs Dev Proxy simulating rate limiting on Postmark APIs

Compatibility

Dev Proxy v2.1.0

Contributors

Version history

VersionDateComments
1.7February 4, 2026Updated to Dev Proxy v2.1.0
1.6January 18, 2026Moved config files to .devproxy folder
1.5January 5, 2026Updated to Dev Proxy v2.0.0
1.4June 27, 2025Updated to Dev Proxy v0.29.2
1.3January 25, 2024Updated schema version
1.2January 17, 2024Updated plugin path
1.1January 11, 2024Updated to new format
1.0January 7, 2024Initial release

Minimal path to awesome

  • Get the sample:
    • Download just this sample:

      npx gitload-cli https://github.com/pnp/proxy-samples/tree/main/samples/postmark-rate-limiting-errors

      or

    • Download as a .ZIP file and unzip it, or

    • Clone this repository

  • Start Dev Proxy specifying the path to one of the config files, eg. devproxy --config-file .devproxy/postmark-rate-limiting-rc.json

Features

  • simulate rate limiting on Postmark APIs using the postmark-rate-limiting-rc.json preset
  • simulate several Postmark API errors using the postmark-errors-rc.json preset

For more information about the configuration options, see the documentation of the RateLimitingPlugin.

Help

We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

You can try looking at issues related to this sample to see if anybody else is having the same issues.

If you encounter any issues using this sample, create a new issue.

Finally, if you have an idea for improvement, make a suggestion.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.