All samples

Simulate errors on Microsoft Graph with HTTP Cats

Testing doesn't have to boring! Use this preset to return funny cat images when simulating erroneous HTTP status codes for Microsoft Graph. This preset contains images for the following HTTP status codes: 429, 500, 502, 503, 504 and 507. When you test your app in the browser, and the Dev Proxy returns one of these status codes, you will see a funny cat image instead of a boring error message. Have fun! 🐱 HTTP cat pictures by Tomomi Imura.

Waldek Mastykarz, Tomomi Imura

Simulate errors on Microsoft Graph with HTTP Cats

Summary

Testing doesn’t have to boring!

Use this preset to return funny cat images when simulating erroneous HTTP status codes for Microsoft Graph. When you test your app in the browser, and the Dev Proxy simulates an error, you will see a funny cat image instead of a boring error message. Have fun! 🐱

HTTP cat pictures by Tomomi Imura.

Dev Proxy simulating the 429 Too Many Request error on Microsoft Graph with an image of a cat Dev Proxy simulating the 500 Internal Server Error error on Microsoft Graph with an image of a cat Dev Proxy simulating the 503 Service Unavailable error on Microsoft Graph with an image of a cat

Compatibility

Dev Proxy v2.1.0

Contributors

Version history

VersionDateComments
1.9February 4, 2026Updated to Dev Proxy v2.1.0
1.8January 18, 2026Moved config files to .devproxy folder
1.7January 5, 2026Updated to Dev Proxy v2.0.0
1.6June 27, 2025Updated to 0.29 schema
1.5February 11, 2025Updated to 0.24 schema
1.4January 17, 2024Updated plugin path
1.3January 11, 2024Updated to new format
1.2December 22, 2023Updated to new format
1.1November 14, 2023Renamed to Dev Proxy
1.0August 10, 2023Initial release

Minimal path to awesome

  • Get the sample:
    • Download just this sample:

      npx gitload-cli https://github.com/pnp/proxy-samples/tree/main/samples/http-cats

      or

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

    • Clone this repository

  • Start Dev Proxy by running devproxy

Features

This preset contains images for the following HTTP status codes: 429, 500, 502, 503, 504 and 507.

Proxy will simulate these errors at random and return a funny cat imagine instead of a boring error message.

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.